summaryrefslogtreecommitdiff
path: root/pcr/chiliproject/chiliproject.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-08-24 23:49:51 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-08-24 23:49:51 -0300
commitbb4b7c72e9c72e66f9a105c8bf10853eb9f67b73 (patch)
treee88b908b0be3b8611792469969ab907a3d01bca1 /pcr/chiliproject/chiliproject.install
parent6b4c4fc91183552d0035d0de668ad53c97c47f00 (diff)
parent5077d9a1f61b553af2e51112274b3f7ac0a7c095 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/chiliproject/chiliproject.install')
-rw-r--r--pcr/chiliproject/chiliproject.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/pcr/chiliproject/chiliproject.install b/pcr/chiliproject/chiliproject.install
new file mode 100644
index 000000000..cb4622f09
--- /dev/null
+++ b/pcr/chiliproject/chiliproject.install
@@ -0,0 +1,17 @@
+adjust_perms(){
+ chown -R http:http "/var/lib/chiliproject" 1>/dev/null
+ for dir in /var/lib/chiliproject/{files,log,tmp,public/plugin_assets}; do
+ chown -R http:http "$dir" 1>/dev/null
+ chmod -R 755 "$dir" 1>/dev/null
+ done
+}
+
+post_install() {
+ adjust_perms
+ echo 'take a look at https://wiki.archlinux.org/index.php?title=Chiliproject for further setup instructions.'
+}
+
+post_upgrade() {
+ adjust_perms
+ echo 'take a look at https://wiki.archlinux.org/index.php?title=Chiliproject for further setup instructions.'
+}