Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
8c8d9304
Commit
8c8d9304
authored
Sep 24, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lock z-push to a particular upstream version by fmbiete/Z-Push-contrib commit hash
parent
c1ccd225
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
zpush.sh
setup/zpush.sh
+9
-7
No files found.
setup/zpush.sh
View file @
8c8d9304
...
...
@@ -21,25 +21,27 @@ apt_install \
php5enmod imap
# Copy Z-Push into place.
TARGETHASH
=
d0cd5a47c53afac5c3b287006dc8a48a1c4ffcd5
needs_update
=
0
#NODOC
if
[
!
-f
/usr/local/lib/z-push/version
]
;
then
needs_update
=
1
#NODOC
elif
[[
`
curl
-s
https://api.github.com/repos/fmbiete/Z-Push-contrib/git/refs/heads/master
`
!=
`
cat
/usr/local/lib/z-push/version
`
]]
;
then
elif
[[
$TARGETHASH
!=
`
cat
/usr/local/lib/z-push/version
`
]]
;
then
# checks if the version
needs_update
=
1
#NODOC
fi
if
[
$needs_update
==
1
]
;
then
rm
-rf
/usr/local/lib/z-push
rm
-f
/tmp/zpush
.zip
rm
-f
/tmp/zpush
-repo
echo
installing z-push
\(
fmbiete fork
\)
...
wget
-qO
/tmp/zpush.zip https://github.com/fmbiete/Z-Push-contrib/archive/master.zip
unzip
-q
/tmp/zpush.zip
-d
/usr/local/lib/
mv
/usr/local/lib/Z-Push-contrib-master /usr/local/lib/z-push
git clone
-q
https://github.com/fmbiete/Z-Push-contrib /tmp/zpush-repo
(
cd
/tmp/zpush-repo/
;
git checkout
-q
$TARGETHASH
;
)
rm
-rf
/tmp/zpush-repo/.git
mv
/tmp/zpush-repo /usr/local/lib/z-push
rm
-f
/usr/sbin/z-push-
{
admin,top
}
ln
-s
/usr/local/lib/z-push/z-push-admin.php /usr/sbin/z-push-admin
ln
-s
/usr/local/lib/z-push/z-push-top.php /usr/sbin/z-push-top
rm
/tmp/zpush.zip
;
curl
-s
https://api.github.com/repos/fmbiete/Z-Push-contrib/git/refs/heads/master
>
/usr/local/lib/z-push/version
rm
-f
/tmp/zpush-repo
echo
$TARGETHASH
>
/usr/local/lib/z-push/version
fi
# Configure default config.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment