Browse Source

Use consistent gnusocial name

Bob Mottram 8 years ago
parent
commit
1bd6858b28

+ 3
- 3
src/freedombone-adduser View File

@@ -282,14 +282,14 @@ if grep -q "install_sip" $COMPLETION_FILE; then
282 282
 fi
283 283
 
284 284
 if grep -q "install_gnusocial" $COMPLETION_FILE; then
285
-    MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}')
285
+    MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "gnusocial domain" | awk -F ':' '{print $2}')
286 286
     if [ -d /var/www/$MICROBLOG_DOMAIN_NAME ]; then
287 287
         cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
288 288
         php scripts/registeruser.php -n $MY_USERNAME -w "$NEW_USER_PASSWORD" -e "$MY_USERNAME@$HOSTNAME"
289 289
         ${PROJECT_NAME}-addemail -u $MY_USERNAME -e "noreply@$MICROBLOG_DOMAIN_NAME" -g gnusocial --public no
290
-        echo $'Created GNU Social user'
290
+        echo $'Created gnusocial user'
291 291
     else
292
-        echo $"Unable to find GNU Social installation at /var/www/$MICROBLOG_DOMAIN_NAME/htdocs"
292
+        echo $"Unable to find gnusocial installation at /var/www/$MICROBLOG_DOMAIN_NAME/htdocs"
293 293
         userdel -r $MY_USERNAME
294 294
         exit 11
295 295
     fi

+ 51
- 51
src/freedombone-app-gnusocial View File

@@ -8,7 +8,7 @@
8 8
 #
9 9
 #                    Freedom in the Cloud
10 10
 #
11
-# GNU Social application
11
+# gnusocial application
12 12
 #
13 13
 # License
14 14
 # =======
@@ -222,13 +222,13 @@ function reconfigure_gnusocial {
222 222
 }
223 223
 
224 224
 function upgrade_gnusocial {
225
-    if grep -q "GNU Social domain" $COMPLETION_FILE; then
226
-        MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | head -n 1 | awk -F ':' '{print $2}')
225
+    if grep -q "gnusocial domain" $COMPLETION_FILE; then
226
+        MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "gnusocial domain" | head -n 1 | awk -F ':' '{print $2}')
227 227
     fi
228 228
 
229 229
     # update to the next commit
230 230
     function_check set_repo_commit
231
-    set_repo_commit /var/www/$MICROBLOG_DOMAIN_NAME/htdocs "GNU Social commit" "$MICROBLOG_COMMIT" $MICROBLOG_REPO
231
+    set_repo_commit /var/www/$MICROBLOG_DOMAIN_NAME/htdocs "gnusocial commit" "$MICROBLOG_COMMIT" $MICROBLOG_REPO
232 232
 
233 233
     function_check gnusocial_running_script
234 234
     gnusocial_running_script
@@ -237,8 +237,8 @@ function upgrade_gnusocial {
237 237
 
238 238
 function backup_local_gnusocial {
239 239
     MICROBLOG_DOMAIN_NAME='microblog'
240
-    if grep -q "GNU Social domain" $COMPLETION_FILE; then
241
-        MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | head -n 1 | awk -F ':' '{print $2}')
240
+    if grep -q "gnusocial domain" $COMPLETION_FILE; then
241
+        MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "gnusocial domain" | head -n 1 | awk -F ':' '{print $2}')
242 242
     fi
243 243
 
244 244
     source_directory=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
@@ -263,12 +263,12 @@ function backup_local_gnusocial {
263 263
 }
264 264
 
265 265
 function restore_local_gnusocial {
266
-    if ! grep -q "GNU Social domain" $COMPLETION_FILE; then
266
+    if ! grep -q "gnusocial domain" $COMPLETION_FILE; then
267 267
         return
268 268
     fi
269
-    MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | head -n 1 | awk -F ':' '{print $2}')
269
+    MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "gnusocial domain" | head -n 1 | awk -F ':' '{print $2}')
270 270
     if [ $MICROBLOG_DOMAIN_NAME ]; then
271
-        echo $"Restoring GNU Social"
271
+        echo $"Restoring gnusocial"
272 272
         temp_restore_dir=/root/tempgnusocial
273 273
         gnusocial_dir=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
274 274
         # stop the daemons
@@ -286,13 +286,13 @@ function restore_local_gnusocial {
286 286
         # start the daemons
287 287
         cd $gnusocial_dir
288 288
         scripts/startdaemons.sh
289
-        echo $"Restore of GNU Social complete"
289
+        echo $"Restore of gnusocial complete"
290 290
     fi
291 291
 }
292 292
 
293 293
 function backup_remote_gnusocial {
294
-    if grep -q "GNU Social domain" $COMPLETION_FILE; then
295
-        MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | head -n 1 | awk -F ':' '{print $2}')
294
+    if grep -q "gnusocial domain" $COMPLETION_FILE; then
295
+        MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "gnusocial domain" | head -n 1 | awk -F ':' '{print $2}')
296 296
         temp_backup_dir=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
297 297
         if [ -d $temp_backup_dir ]; then
298 298
             function_check suspend_site
@@ -309,15 +309,15 @@ function backup_remote_gnusocial {
309 309
             function_check restart_site
310 310
             restart_site
311 311
         else
312
-            echo $"GNU Social domain specified but not found in ${temp_backup_dir}"
312
+            echo $"gnusocial domain specified but not found in ${temp_backup_dir}"
313 313
         fi
314 314
     fi
315 315
 }
316 316
 
317 317
 function restore_remote_gnusocial {
318
-    if grep -q "GNU Social domain" $COMPLETION_FILE; then
319
-        echo $"Restoring GNU Social"
320
-        MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | head -n 1 | awk -F ':' '{print $2}')
318
+    if grep -q "gnusocial domain" $COMPLETION_FILE; then
319
+        echo $"Restoring gnusocial"
320
+        MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "gnusocial domain" | head -n 1 | awk -F ':' '{print $2}')
321 321
 
322 322
         # stop the daemons
323 323
         cd /var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
@@ -335,7 +335,7 @@ function restore_remote_gnusocial {
335 335
         # start the daemons
336 336
         cd /var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
337 337
         scripts/startdaemons.sh
338
-        echo $"Restore of GNU Social complete"
338
+        echo $"Restore of gnusocial complete"
339 339
     fi
340 340
 }
341 341
 
@@ -362,7 +362,7 @@ function remove_gnusocial {
362 362
     function_check remove_onion_service
363 363
     remove_onion_service microblog ${MICROBLOG_ONION_PORT}
364 364
     sed -i '/install_gnusocial/d' $COMPLETION_FILE
365
-    sed -i '/GNU Social /d' $COMPLETION_FILE
365
+    sed -i '/gnusocial /d' $COMPLETION_FILE
366 366
     if grep -q "gnusocial" /etc/crontab; then
367 367
         sed -i "/gnusocial/d" /etc/crontab
368 368
     fi
@@ -408,10 +408,10 @@ function install_gnusocial_main {
408 408
 
409 409
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
410 410
     git checkout $MICROBLOG_COMMIT -b $MICROBLOG_COMMIT
411
-    if ! grep -q "GNU Social commit" $COMPLETION_FILE; then
412
-        echo "GNU Social commit:$MICROBLOG_COMMIT" >> $COMPLETION_FILE
411
+    if ! grep -q "gnusocial commit" $COMPLETION_FILE; then
412
+        echo "gnusocial commit:$MICROBLOG_COMMIT" >> $COMPLETION_FILE
413 413
     else
414
-        sed -i "s/GNU Social commit.*/GNU Social commit:$MICROBLOG_COMMIT/g" $COMPLETION_FILE
414
+        sed -i "s/gnusocial commit.*/gnusocial commit:$MICROBLOG_COMMIT/g" $COMPLETION_FILE
415 415
     fi
416 416
 
417 417
     chmod a+w /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
@@ -547,7 +547,7 @@ function install_gnusocial_main {
547 547
 
548 548
     # NOTE: For the typical case always enable SSL and only
549 549
     # disable it if in onion only mode. This is due to complexities
550
-    # with the way URLs are generated by GNU Social
550
+    # with the way URLs are generated by gnusocial
551 551
     gnusocial_ssl='always'
552 552
     if [[ $ONION_ONLY != 'no' ]]; then
553 553
         gnusocial_ssl='never'
@@ -563,7 +563,7 @@ function install_gnusocial_main {
563 563
     # Create the configuration
564 564
     gnusocial_installer=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs/scripts/install_cli.php
565 565
     if [ ! -f $gnusocial_installer ]; then
566
-        echo $'No GNU Social commandline installer found'
566
+        echo $'No gnusocial commandline installer found'
567 567
         exit 53026
568 568
     fi
569 569
     ${gnusocial_installer} --server "${MICROBLOG_SERVER}" \
@@ -638,10 +638,10 @@ function install_gnusocial_main {
638 638
         fi
639 639
     fi
640 640
 
641
-    if ! grep -q "GNU Social domain" $COMPLETION_FILE; then
642
-        echo "GNU Social domain:$MICROBLOG_DOMAIN_NAME" >> $COMPLETION_FILE
641
+    if ! grep -q "gnusocial domain" $COMPLETION_FILE; then
642
+        echo "gnusocial domain:$MICROBLOG_DOMAIN_NAME" >> $COMPLETION_FILE
643 643
     else
644
-        sed -i "s|GNU Social domain.*|GNU Social domain:$MICROBLOG_DOMAIN_NAME|g" $COMPLETION_FILE
644
+        sed -i "s|gnusocial domain.*|gnusocial domain:$MICROBLOG_DOMAIN_NAME|g" $COMPLETION_FILE
645 645
     fi
646 646
 
647 647
     install_completed gnusocial_main
@@ -657,7 +657,7 @@ function install_gnusocial_plugin_sharings {
657 657
 
658 658
     # update to the next commit
659 659
     function_check set_repo_commit
660
-    set_repo_commit /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins "GNU Social sharings plugin commit" "$SHARINGS_COMMIT" $SHARINGS_REPO
660
+    set_repo_commit /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins "gnusocial sharings plugin commit" "$SHARINGS_COMMIT" $SHARINGS_REPO
661 661
 
662 662
     if [[ $(app_is_installed gnusocial_plugin_sharings) == "1" ]]; then
663 663
         return
@@ -693,28 +693,28 @@ function install_gnusocial_plugin_sharings {
693 693
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en/LC_MESSAGES
694 694
     msgfmt -o Sharings.mo Sharings.po
695 695
     if [ ! -f Sharings.po ]; then
696
-        echo $'English translations for GNU Social sharings plugin were not created'
696
+        echo $'English translations for gnusocial sharings plugin were not created'
697 697
         exit 84352
698 698
     fi
699 699
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_GB/LC_MESSAGES
700 700
     msgfmt -o Sharings.mo Sharings.po
701 701
     if [ ! -f Sharings.po ]; then
702
-        echo $'English (GB) translations for GNU Social sharings plugin were not created'
702
+        echo $'English (GB) translations for gnusocial sharings plugin were not created'
703 703
         exit 84352
704 704
     fi
705 705
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_US/LC_MESSAGES
706 706
     msgfmt -o Sharings.mo Sharings.po
707 707
     if [ ! -f Sharings.po ]; then
708
-        echo $'English (US) translations for GNU Social sharings plugin were not created'
708
+        echo $'English (US) translations for gnusocial sharings plugin were not created'
709 709
         exit 84352
710 710
     fi
711 711
 
712 712
     chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
713 713
 
714
-    if ! grep -q "GNU Social sharings plugin commit" $COMPLETION_FILE; then
715
-        echo "GNU Social sharings plugin commit:$SHARINGS_COMMIT" >> $COMPLETION_FILE
714
+    if ! grep -q "gnusocial sharings plugin commit" $COMPLETION_FILE; then
715
+        echo "gnusocial sharings plugin commit:$SHARINGS_COMMIT" >> $COMPLETION_FILE
716 716
     else
717
-        sed -i "s|GNU Social sharings plugin commit.*|GNU Social sharings plugin commit:$SHARINGS_COMMIT|g" $COMPLETION_FILE
717
+        sed -i "s|gnusocial sharings plugin commit.*|gnusocial sharings plugin commit:$SHARINGS_COMMIT|g" $COMPLETION_FILE
718 718
     fi
719 719
     install_completed gnusocial_plugin_sharings
720 720
 }
@@ -727,7 +727,7 @@ function install_gnusocial_plugin_sharings_theme {
727 727
 
728 728
     # update to the next commit
729 729
     function_check set_repo_commit
730
-    set_repo_commit /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins "GNU Social sharings theme plugin commit" "$SHARINGS_THEME_COMMIT" $SHARINGS_THEME_REPO
730
+    set_repo_commit /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins "gnusocial sharings theme plugin commit" "$SHARINGS_THEME_COMMIT" $SHARINGS_THEME_REPO
731 731
 
732 732
     if [[ $(app_is_installed gnusocial_plugin_sharings_theme) == "1" ]]; then
733 733
         return
@@ -757,10 +757,10 @@ function install_gnusocial_plugin_sharings_theme {
757 757
 
758 758
     chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
759 759
 
760
-    if ! grep -q "GNU Social sharings plugin theme commit" $COMPLETION_FILE; then
761
-        echo "GNU Social sharings plugin theme commit:$SHARINGS_THEME_COMMIT" >> $COMPLETION_FILE
760
+    if ! grep -q "gnusocial sharings plugin theme commit" $COMPLETION_FILE; then
761
+        echo "gnusocial sharings plugin theme commit:$SHARINGS_THEME_COMMIT" >> $COMPLETION_FILE
762 762
     else
763
-        sed -i "s|GNU Social sharings plugin theme commit.*|GNU Social sharings plugin theme commit:$SHARINGS_THEME_COMMIT|g" $COMPLETION_FILE
763
+        sed -i "s|gnusocial sharings plugin theme commit.*|gnusocial sharings plugin theme commit:$SHARINGS_THEME_COMMIT|g" $COMPLETION_FILE
764 764
     fi
765 765
     install_completed gnusocial_plugin_sharings_theme
766 766
 }
@@ -774,7 +774,7 @@ function expire_gnusocial_posts {
774 774
 
775 775
     echo '<?php' > $gnusocial_expire_script
776 776
     echo '' >> $gnusocial_expire_script
777
-    echo '// GNU Social post expiry script, based on StatExpire by Tony Baldwin' >> $gnusocial_expire_script
777
+    echo '// gnusocial post expiry script, based on StatExpire by Tony Baldwin' >> $gnusocial_expire_script
778 778
     echo '// https://github.com/tonybaldwin/statexpire' >> $gnusocial_expire_script
779 779
     echo '' >> $gnusocial_expire_script
780 780
     echo '$oldate=date(("Y-m-d"), strtotime("-3 months"));' >> $gnusocial_expire_script
@@ -804,7 +804,7 @@ function expire_gnusocial_posts {
804 804
     echo '$rowaff3=mysql_affected_rows();' >> $gnusocial_expire_script
805 805
     echo 'mysql_close();' >> $gnusocial_expire_script
806 806
     echo '' >> $gnusocial_expire_script
807
-    echo 'echo "Expire GNU Social posts: $rowaff1 notices, $rowaff2 conversations, and $rowaff3 replies deleted from database.\n";' >> $gnusocial_expire_script
807
+    echo 'echo "Expire gnusocial posts: $rowaff1 notices, $rowaff2 conversations, and $rowaff3 replies deleted from database.\n";' >> $gnusocial_expire_script
808 808
     chmod +x $gnusocial_expire_script
809 809
 
810 810
     # Add a cron job
@@ -821,7 +821,7 @@ function expire_gnusocial_posts {
821 821
 function install_gnusocial_theme {
822 822
     # update to the next commit
823 823
     function_check set_repo_commit
824
-    set_repo_commit /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Qvitter "GNU Social theme commit" "$MICROBLOG_THEME_COMMIT" $MICROBLOG_THEME_REPO
824
+    set_repo_commit /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Qvitter "gnusocial theme commit" "$MICROBLOG_THEME_COMMIT" $MICROBLOG_THEME_REPO
825 825
 
826 826
     # customise with project logo
827 827
     if [ -f /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Qvitter/img/sprite.png ]; then
@@ -910,10 +910,10 @@ function install_gnusocial_theme {
910 910
         fi
911 911
     fi
912 912
 
913
-    if ! grep -q "GNU Social theme commit" $COMPLETION_FILE; then
914
-        echo "GNU Social theme commit:$MICROBLOG_THEME_COMMIT" >> $COMPLETION_FILE
913
+    if ! grep -q "gnusocial theme commit" $COMPLETION_FILE; then
914
+        echo "gnusocial theme commit:$MICROBLOG_THEME_COMMIT" >> $COMPLETION_FILE
915 915
     else
916
-        sed -i "s|GNU Social theme commit.*|GNU Social theme commit:$MICROBLOG_THEME_COMMIT|g" $COMPLETION_FILE
916
+        sed -i "s|gnusocial theme commit.*|gnusocial theme commit:$MICROBLOG_THEME_COMMIT|g" $COMPLETION_FILE
917 917
     fi
918 918
 
919 919
     chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
@@ -926,7 +926,7 @@ function install_gnusocial_markdown {
926 926
 
927 927
     # update to the next commit
928 928
     function_check set_repo_commit
929
-    set_repo_commit $MICROBLOG_PATH/local/plugins/Markdown "GNU Social Markdown commit" "$MICROBLOG_MARKDOWN_COMMIT" $MICROBLOG_MARKDOWN_REPO
929
+    set_repo_commit $MICROBLOG_PATH/local/plugins/Markdown "gnusocial Markdown commit" "$MICROBLOG_MARKDOWN_COMMIT" $MICROBLOG_MARKDOWN_REPO
930 930
 
931 931
     if [[ $(app_is_installed gnusocial_markdown) == "1" ]]; then
932 932
         return
@@ -953,10 +953,10 @@ function install_gnusocial_markdown {
953 953
         echo "addPlugin('Markdown');" >> $microblog_config_file
954 954
     fi
955 955
 
956
-    if ! grep -q "GNU Social Markdown commit" $COMPLETION_FILE; then
957
-        echo "GNU Social Markdown commit:$MICROBLOG_MARKDOWN_COMMIT" >> $COMPLETION_FILE
956
+    if ! grep -q "gnusocial Markdown commit" $COMPLETION_FILE; then
957
+        echo "gnusocial Markdown commit:$MICROBLOG_MARKDOWN_COMMIT" >> $COMPLETION_FILE
958 958
     else
959
-        sed -i "s|GNU Social Markdown commit.*|GNU Social Markdown commit:$MICROBLOG_MARKDOWN_COMMIT|g" $COMPLETION_FILE
959
+        sed -i "s|gnusocial Markdown commit.*|gnusocial Markdown commit:$MICROBLOG_MARKDOWN_COMMIT|g" $COMPLETION_FILE
960 960
     fi
961 961
 
962 962
     chown -R www-data:www-data $MICROBLOG_PATH
@@ -972,7 +972,7 @@ function install_gnusocial_plugin_nsfw {
972 972
 
973 973
     # update to the next commit
974 974
     function_check set_repo_commit
975
-    set_repo_commit /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins "GNU Social NSFW plugin commit" "$GNUSOCIAL_NSFW_COMMIT" $GNUSOCIAL_NSFW_REPO
975
+    set_repo_commit /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins "gnusocial NSFW plugin commit" "$GNUSOCIAL_NSFW_COMMIT" $GNUSOCIAL_NSFW_REPO
976 976
 
977 977
     if grep -Fxq "install_gnusocial_plugin_nsfw" $COMPLETION_FILE; then
978 978
         return
@@ -1002,10 +1002,10 @@ function install_gnusocial_plugin_nsfw {
1002 1002
 
1003 1003
     chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
1004 1004
 
1005
-    if ! grep -q "GNU Social NSFW plugin commit" $COMPLETION_FILE; then
1006
-        echo "GNU Social NSFW plugin commit:$GNUSOCIAL_NSFW_COMMIT" >> $COMPLETION_FILE
1005
+    if ! grep -q "gnusocial NSFW plugin commit" $COMPLETION_FILE; then
1006
+        echo "gnusocial NSFW plugin commit:$GNUSOCIAL_NSFW_COMMIT" >> $COMPLETION_FILE
1007 1007
     else
1008
-        sed -i "s|GNU Social NSFW plugin commit.*|GNU Social NSFW plugin commit:$GNUSOCIAL_NSFW_COMMIT|g" $COMPLETION_FILE
1008
+        sed -i "s|gnusocial NSFW plugin commit.*|gnusocial NSFW plugin commit:$GNUSOCIAL_NSFW_COMMIT|g" $COMPLETION_FILE
1009 1009
     fi
1010 1010
     install_completed gnusocial_plugin_nsfw
1011 1011
 }

+ 1
- 1
src/freedombone-app-rss View File

@@ -550,7 +550,7 @@ function install_rss_gnusocial {
550 550
     function_check git_clone
551 551
     git_clone $RSS_READER_GNUSOCIAL_REPO ttrss-gnusocial
552 552
     if [ ! -d $INSTALL_DIR/ttrss-gnusocial ]; then
553
-        echo $'Could not clone repo for RSS reader GNU Social plugin'
553
+        echo $'Could not clone repo for RSS reader gnusocial plugin'
554 554
         exit 52838
555 555
     fi
556 556
     cp -r $INSTALL_DIR/ttrss-gnusocial $RSS_READER_GNUSOCIAL_PATH

+ 3
- 3
src/freedombone-rmuser View File

@@ -95,12 +95,12 @@ if grep -q "install_sip" $COMPLETION_FILE; then
95 95
     ${PROJECT_NAME}-rmsipuser $MY_USERNAME
96 96
 fi
97 97
 
98
-if grep -q "GNU Social domain" $COMPLETION_FILE; then
99
-    MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "GNU Social domain" | awk -F ':' '{print $2}')
98
+if grep -q "gnusocial domain" $COMPLETION_FILE; then
99
+    MICROBLOG_DOMAIN_NAME=$(cat $COMPLETION_FILE | grep "gnusocial domain" | awk -F ':' '{print $2}')
100 100
     if [ -d /var/www/$MICROBLOG_DOMAIN_NAME ]; then
101 101
         cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
102 102
         php scripts/deleteprofile.php -n $MY_USERNAME -y
103
-        echo $'Removed GNU Social user'
103
+        echo $'Removed gnusocial user'
104 104
     fi
105 105
 fi
106 106
 

+ 2
- 0
src/freedombone-utils-upgrade View File

@@ -66,6 +66,8 @@ function upgrade_installation_from_previous_versions {
66 66
     sed -i 's|install_tox_node|install_tox|g' $COMPLETION_FILE
67 67
     sed -i 's|intrusion_detection|install_tripwire|g' $COMPLETION_FILE
68 68
 
69
+    sed -i 's|GNU Social|gnusocial|g' $COMPLETION_FILE
70
+
69 71
     if [ -f /usr/local/bin/zeronetavahi ]; then
70 72
         rm /usr/local/bin/zeronetavahi
71 73
     fi