summaryrefslogtreecommitdiff
path: root/pcr/chiliproject/chiliproject.install
blob: cb4622f0905955e5bba602228c07c4ac122a71c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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.'
}