summarylogtreecommitdiffstats
path: root/piwigo.perm.sh
blob: ebf11ca91444b407da93152139956a3d4a19294e (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

piwigo_path='/usr/share/webapps/piwigo'
htuser='http'
htgroup='http'

find ${piwigo_path}/ -type f -print0 | xargs -0 chmod 0640
find ${piwigo_path}/ -type d -print0 | xargs -0 chmod 0750
chown -R ${htuser}:${htgroup} ${piwigo_path}/