summaryrefslogtreecommitdiff
path: root/pcr/chiliproject/chiliproject.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-25 00:02:57 +0000
committerroot <root@rshg054.dnsready.net>2012-08-25 00:02:57 +0000
commit29896582b8f0f163c9b880fa64ee948d470ef5ba (patch)
tree54d918c561c83d78e4d07f94774f7f10640cafa9 /pcr/chiliproject/chiliproject.install
parent12b846e1ead204137d60caba25f7e494b51b4dc8 (diff)
Sat Aug 25 00:02:57 UTC 2012
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.'
+}