summarylogtreecommitdiffstats
path: root/movim.install
diff options
context:
space:
mode:
authorMaxime “pep” Buquet2017-10-20 03:20:25 +0100
committerMaxime “pep” Buquet2017-10-20 03:20:25 +0100
commit56323076523a2c0dc5cbbfed3a09fc1105ba67f2 (patch)
tree404b8897d523955d59cd5c0563612fadd1572092 /movim.install
parentaf886255d9b30d8b8a3cfca4ed07a68928974ab9 (diff)
downloadaur-56323076523a2c0dc5cbbfed3a09fc1105ba67f2.tar.gz
Make the cache and users folders symlinks to folders in /var/cache
Diffstat (limited to 'movim.install')
-rw-r--r--movim.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/movim.install b/movim.install
index 8ea3d88554b1..c93df776c2d2 100644
--- a/movim.install
+++ b/movim.install
@@ -1,3 +1,15 @@
+pre_remove() {
+ if [ -d /usr/share/webapps/movim ] && [ ! -L /usr/share/webapps/movim/cache ]; then
+ echo 'The "cache" and "users" folders in /usr/share/webapps/movim are'
+ echo 'being moved to /var/cache/webapps/movim.'
+
+ install -m755 -d /var/cache/webapps/movim
+ mv /usr/share/webapps/movim/{cache,users} /var/cache/webapps/movim/
+ chmod -R u+rwX,g+rwX,o-rwx /var/cache/webapps/movim
+ chown -R root:http /var/cache/webapps/movim
+ fi
+}
+
post_install() {
echo 'Post-installation tutorial'
echo 'https://github.com/movim/movim/wiki/Install-Movim#2-database-configuration'