diff options
-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 |