aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/backup-restore-site
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl/backup-restore-site')
-rwxr-xr-xshare/hydractl/backup-restore-site20
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