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
a0e603a3
Commit
a0e603a3
authored
Dec 23, 2017
by
Michael Kroes
Committed by
Joshua Tauberer
Dec 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change z-push to use the git repository instead of the tar ball (#1305)
parent
88604074
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
CHANGELOG.md
CHANGELOG.md
+1
-0
zpush.sh
setup/zpush.sh
+8
-8
No files found.
CHANGELOG.md
View file @
a0e603a3
...
...
@@ -16,6 +16,7 @@ Mail:
Installer:
*
We now run
`apt-get autoremove`
at the start of setup to clear out old packages, especially old kernels that take up a lot of space. On the first run, this step may take a long time.
*
We now fetch z-push from their tagged git repository
v0.25 (November 15, 2017)
-------------------------
...
...
setup/zpush.sh
View file @
a0e603a3
...
...
@@ -22,27 +22,27 @@ apt_install \
phpenmod
-v
php7.0 imap
# Copy Z-Push into place.
TARGETHASH
=
aae5093212ac0b7d8bf2d79fd5b87ca5bbf091cb
VERSION
=
2.3.8
needs_update
=
0
#NODOC
if
[
!
-f
/usr/local/lib/z-push/version
]
;
then
needs_update
=
1
#NODOC
elif
[[
$
TARGETHASH
!=
`
cat
/usr/local/lib/z-push/version
`
]]
;
then
elif
[[
$
VERSION
!=
`
cat
/usr/local/lib/z-push/version
`
]]
;
then
# checks if the version
needs_update
=
1
#NODOC
fi
if
[
$needs_update
==
1
]
;
then
wget_verify http://download.z-push.org/final/2.3/z-push-
$VERSION
.tar.gz
$TARGETHASH
/tmp/z-push.tar.gz
rm
-rf
/usr/local/lib/z-push
tar
-xzf
/tmp/z-push.tar.gz
-C
/usr/local/lib/
rm
/tmp/z-push.tar.gz
mv
/usr/local/lib/z-push-
$VERSION
/usr/local/lib/z-push
git_clone https://stash.z-hub.io/scm/zp/z-push.git
$VERSION
''
/tmp/z-push
mkdir
/usr/local/lib/z-push
cp
-r
/tmp/z-push/src/
*
/usr/local/lib/z-push
rm
-rf
/tmp/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
echo
$
TARGETHASH
>
/usr/local/lib/z-push/version
echo
$
VERSION
>
/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