summaryrefslogtreecommitdiffstats
path: root/main/roundcubemail/roundcubemail.post-upgrade
diff options
context:
space:
mode:
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 708be312a..2f49d6cc7 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