aboutsummaryrefslogtreecommitdiffstats
path: root/main/roundcubemail/roundcubemail.post-upgrade
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-04-07 08:18:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-04-07 09:00:33 +0000
commita78c5e790c0379a90ab5d0f60fa90792f01adbdd (patch)
tree6ae6f17f505d70a194c39c94cccfa7624c004b34 /main/roundcubemail/roundcubemail.post-upgrade
parentf748f363d850b31732f954e2b9c3e9d44ca94704 (diff)
downloadaports-a78c5e790c0379a90ab5d0f60fa90792f01adbdd.tar.bz2
aports-a78c5e790c0379a90ab5d0f60fa90792f01adbdd.tar.xz
main/roundcubemail: upgrade to 0.5.1
Diffstat (limited to 'main/roundcubemail/roundcubemail.post-upgrade')
-rw-r--r--main/roundcubemail/roundcubemail.post-upgrade21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/roundcubemail/roundcubemail.post-upgrade b/main/roundcubemail/roundcubemail.post-upgrade
index 708be312a9..2f49d6cc7a 100644
--- a/main/roundcubemail/roundcubemail.post-upgrade
+++ b/main/roundcubemail/roundcubemail.post-upgrade
@@ -24,3 +24,24 @@ if [ -L /usr/share/webapps/roundcube/config.apk-new ] && \
/usr/share/webapps/roundcube/config
fi
+# logs and temp moved
+if [ -d /usr/share/webapps/roundcube/logs ]; then
+ mv /usr/share/webapps/roundcube/logs/* \
+ /var/log/roundcube/
+
+ # clone permissions
+ chown $(stat -c %U:%G /usr/share/webapps/roundcube/logs) \
+ /var/log/roundcube
+fi
+
+if [ -d /usr/share/webapps/roundcube/temp ]; then
+ mv /usr/share/webapps/roundcube/temp/* \
+ /tmp/
+fi
+
+# display info about upgrade
+echo "*" >&2
+echo "* Please remember to manually update your database schema:" >&2
+echo "*" >&2
+ls /usr/share/webapps/roundcube/SQL/*.up*.* >&2
+exit 0