diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-08 18:32:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-08 18:32:14 -0300 |
commit | 6dd7d01b58222f8c27583e2b9c701f765e7cf760 (patch) | |
tree | 39aaddae58ff6ca5c75f668b9284f87ee38f0b2b /share | |
parent | 20cc1ac9abd6688d1034a16b61635fcad7e6d792 (diff) | |
download | hydra-6dd7d01b58222f8c27583e2b9c701f765e7cf760.tar.gz hydra-6dd7d01b58222f8c27583e2b9c701f765e7cf760.tar.bz2 |
Fix trac permissions at backup-restore-site
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydractl/backup-restore-site | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/share/hydractl/backup-restore-site b/share/hydractl/backup-restore-site index 3968b7f..064e8e3 100755 --- a/share/hydractl/backup-restore-site +++ b/share/hydractl/backup-restore-site @@ -44,15 +44,19 @@ fi # Set site user. if hydra_check_user $SITE; then SITE_USER="$SITE" + TRAC_USER="$SITE" else SITE_USER="root" + TRAC_USER="www-data" fi # Set site group. if hydra_check_group $SITE; then SITE_GROUP="$SITE" + TRAC_GROUP="$SITE" else SITE_GROUP="root" + TRAC_GROUP="www-data" fi # Local backups are stored compressed @@ -97,7 +101,8 @@ chown -R root.root $FOLDER # Trac if [ -e "$FOLDER/trac" ]; then - ( cd $FOLDER/trac && chown -R $SITE_USER.$SITE_GROUP attachments conf db auth plugins .egg-cache ) + # Optionally also: gvcache/ log/ + ( cd $FOLDER/trac && chown -R $TRAC_USER.$TRAC_GROUP attachments conf db auth plugins .egg-cache ) fi # PmWiki |