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
8e0967dd
Commit
8e0967dd
authored
Sep 24, 2014
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
if an earlier version of roundcube had already been installed, update to our target version
fixes #195
parent
5a89f3c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
webmail.sh
setup/webmail.sh
+15
-5
No files found.
setup/webmail.sh
View file @
8e0967dd
...
...
@@ -28,14 +28,24 @@ apt_install \
# Now that we're beyond that, get rid of those debs before installing from source.
apt-get purge
-qq
-y
roundcube
*
# Install Roundcube from source if it is not already present.
# TODO: Check version?
if
[
!
-d
/usr/local/lib/roundcubemail
]
;
then
# Install Roundcube from source if it is not already present or if it is out of date.
VERSION
=
1.0.2
needs_update
=
0
#NODOC
if
[
!
-f
/usr/local/lib/roundcubemail/version
]
;
then
# not installed yet
needs_update
=
1
#NODOC
elif
[[
$VERSION
!=
`
cat
/usr/local/lib/roundcubemail/version
`
]]
;
then
# checks if the version is what we want
needs_update
=
1
#NODOC
fi
if
[
$needs_update
==
1
]
;
then
echo
installing roudcube webmail
$VERSION
...
rm
-f
/tmp/roundcube.tgz
wget
-qO
/tmp/roundcube.tgz http://downloads.sourceforge.net/project/roundcubemail/roundcubemail/1.0.2/roundcubemail-
1.0.2
.tar.gz
wget
-qO
/tmp/roundcube.tgz http://downloads.sourceforge.net/project/roundcubemail/roundcubemail/1.0.2/roundcubemail-
$VERSION
.tar.gz
tar
-C
/usr/local/lib
-zxf
/tmp/roundcube.tgz
mv
/usr/local/lib/roundcubemail-
1.0.2
/ /usr/local/lib/roundcubemail
mv
/usr/local/lib/roundcubemail-
$VERSION
/ /usr/local/lib/roundcubemail
rm
-f
/tmp/roundcube.tgz
echo
$VERSION
>
/usr/local/lib/roundcubemail/version
fi
# ### Configuring Roundcube
...
...
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