diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-12-14 13:41:54 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-12-14 13:41:54 -0300 |
commit | 54c1158aff8b987dea88b35597047fafe92cd0a7 (patch) | |
tree | b9e40abd6bc670033de0210e56af1eceda68af43 /share/hydractl/backup-restore-site | |
parent | 2368822db564cd0b71276f9af4741a7ad06fc55c (diff) | |
download | hydra-54c1158aff8b987dea88b35597047fafe92cd0a7.tar.gz hydra-54c1158aff8b987dea88b35597047fafe92cd0a7.tar.bz2 |
Fix: chown invocations
Diffstat (limited to 'share/hydractl/backup-restore-site')
-rwxr-xr-x | share/hydractl/backup-restore-site | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/share/hydractl/backup-restore-site b/share/hydractl/backup-restore-site index bf48994..f1def1d 100755 --- a/share/hydractl/backup-restore-site +++ b/share/hydractl/backup-restore-site @@ -104,32 +104,32 @@ if [ "$1" == "localhost" ] || [ "$1" == "backups" ]; then fi # Fix permissions -chown -R root.root $FOLDER +chown -R root:root $FOLDER # Trac if [ -e "$FOLDER/trac" ]; then # Optionally also: gvcache/ log/ - ( cd $FOLDER/trac && chown -R $TRAC_USER.$TRAC_GROUP attachments conf db auth plugins .egg-cache ) + ( cd $FOLDER/trac && chown -R $TRAC_USER:$TRAC_GROUP attachments conf db auth plugins .egg-cache ) fi # PmWiki if [ -e "$FOLDER/wiki" ]; then - ( cd $FOLDER/wiki && chown -R $SITE_USER.$SITE_GROUP wiki.d uploads ) - chown $SITE.root $FOLDER/wiki/local/config.php + ( cd $FOLDER/wiki && chown -R $SITE_USER:$SITE_GROUP wiki.d uploads ) + chown $SITE:root $FOLDER/wiki/local/config.php chmod 660 $FOLDER/wiki/local/config.php fi # Site if [ -e "$FOLDER/site" ]; then - chown -R $SITE_USER.$SITE_GROUP $FOLDER/site + chown -R $SITE_USER:$SITE_GROUP $FOLDER/site fi # Drupal if [ -e "$FOLDER/drupal" ]; then SERIES="$4" - chown -R $SITE_USER.$SITE_GROUP $FOLDER/drupal/files - chown root.$SITE_GROUP $FOLDER/drupal/settings.php + chown -R $SITE_USER:$SITE_GROUP $FOLDER/drupal/files + chown root:$SITE_GROUP $FOLDER/drupal/settings.php chmod 640 $FOLDER/drupal/settings.php if [ -e "/etc/apache2/sites-available/$SITE" ]; then @@ -169,7 +169,7 @@ if [ -e "$FOLDER/ikiwiki" ]; then site="`basename $file .setup`" git clone file:///var/git/repositories/$SITE /var/sites/$SITE/ikiwiki_src ikiwiki --setup $file --rebuild - chown -R $SITE_USER.$SITE_GROUP /var/sites/$SITE/ikiwiki* + chown -R $SITE_USER:$SITE_GROUP /var/sites/$SITE/ikiwiki* else echo "Either $file or git repository not found for $SITE ikiwiki instance" fi @@ -178,6 +178,6 @@ fi # Moin if [ -e "$FOLDER/moin" ]; then echo "Restoring moin for $SITE..." - chown -R root.root $FOLDER/moin/ - chown -R $SITE_USER.$SITE_GROUP $FOLDER/moin/{cgi-bin,data,underlay} + chown -R root:root $FOLDER/moin/ + chown -R $SITE_USER:$SITE_GROUP $FOLDER/moin/{cgi-bin,data,underlay} fi |