Bob Mottram 9 years ago
parent
commit
615a827f4d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/freedombone-backup-remote

+ 1
- 1
src/freedombone-backup-remote View File

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