From 5077d9a1f61b553af2e51112274b3f7ac0a7c095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Alexandre=20Silva=20Delgado?= Date: Fri, 24 Aug 2012 02:11:29 -0300 Subject: chiliproject: add package to pcr --- pcr/chiliproject/chiliproject.install | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pcr/chiliproject/chiliproject.install (limited to 'pcr/chiliproject/chiliproject.install') 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.' +} -- cgit v1.2.3-2-g168b