This commit is contained in:
Bob Mottram 2015-12-22 21:49:29 +00:00
parent 46e0aba9b3
commit 615a827f4d
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ function backup_letsencrypt {
function backup_gnusocial { function backup_gnusocial {
if grep -q "GNU Social domain" $COMPLETION_FILE; then if grep -q "GNU Social domain" $COMPLETION_FILE; then
MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}') MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}')
if [ -d /var/www/${MICROBLOG_DOMAIN_NAME} ]; then if [ -d /var/www/${MICROBLOG_DOMAIN_NAME}/htdocs ]; then
backup_database_to_friend gnusocial backup_database_to_friend gnusocial
backup_directory_to_friend /root/tempgnusocialdata gnusocialdata backup_directory_to_friend /root/tempgnusocialdata gnusocialdata
echo $"Backing up GNU social installation" echo $"Backing up GNU social installation"