瀏覽代碼

Use consistent gnusocial name

Bob Mottram 8 年之前
父節點
當前提交
1bd6858b28
共有 5 個檔案被更改,包括 60 行新增58 行删除
  1. 3
    3
      src/freedombone-adduser
  2. 51
    51
      src/freedombone-app-gnusocial
  3. 1
    1
      src/freedombone-app-rss
  4. 3
    3
      src/freedombone-rmuser
  5. 2
    0
      src/freedombone-utils-upgrade

+ 3
- 3
src/freedombone-adduser 查看文件

282
 fi
282
 fi
283
 
283
 
284
 if grep -q "install_gnusocial" $COMPLETION_FILE; then
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
     if [ -d /var/www/$MICROBLOG_DOMAIN_NAME ]; then
286
     if [ -d /var/www/$MICROBLOG_DOMAIN_NAME ]; then
287
         cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
287
         cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
288
         php scripts/registeruser.php -n $MY_USERNAME -w "$NEW_USER_PASSWORD" -e "$MY_USERNAME@$HOSTNAME"
288
         php scripts/registeruser.php -n $MY_USERNAME -w "$NEW_USER_PASSWORD" -e "$MY_USERNAME@$HOSTNAME"
289
         ${PROJECT_NAME}-addemail -u $MY_USERNAME -e "noreply@$MICROBLOG_DOMAIN_NAME" -g gnusocial --public no
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
     else
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
         userdel -r $MY_USERNAME
293
         userdel -r $MY_USERNAME
294
         exit 11
294
         exit 11
295
     fi
295
     fi

+ 51
- 51
src/freedombone-app-gnusocial 查看文件

8
 #
8
 #
9
 #                    Freedom in the Cloud
9
 #                    Freedom in the Cloud
10
 #
10
 #
11
-# GNU Social application
11
+# gnusocial application
12
 #
12
 #
13
 # License
13
 # License
14
 # =======
14
 # =======
222
 }
222
 }
223
 
223
 
224
 function upgrade_gnusocial {
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
     fi
227
     fi
228
 
228
 
229
     # update to the next commit
229
     # update to the next commit
230
     function_check set_repo_commit
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
     function_check gnusocial_running_script
233
     function_check gnusocial_running_script
234
     gnusocial_running_script
234
     gnusocial_running_script
237
 
237
 
238
 function backup_local_gnusocial {
238
 function backup_local_gnusocial {
239
     MICROBLOG_DOMAIN_NAME='microblog'
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
     fi
242
     fi
243
 
243
 
244
     source_directory=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
244
     source_directory=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
263
 }
263
 }
264
 
264
 
265
 function restore_local_gnusocial {
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
         return
267
         return
268
     fi
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
     if [ $MICROBLOG_DOMAIN_NAME ]; then
270
     if [ $MICROBLOG_DOMAIN_NAME ]; then
271
-        echo $"Restoring GNU Social"
271
+        echo $"Restoring gnusocial"
272
         temp_restore_dir=/root/tempgnusocial
272
         temp_restore_dir=/root/tempgnusocial
273
         gnusocial_dir=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
273
         gnusocial_dir=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
274
         # stop the daemons
274
         # stop the daemons
286
         # start the daemons
286
         # start the daemons
287
         cd $gnusocial_dir
287
         cd $gnusocial_dir
288
         scripts/startdaemons.sh
288
         scripts/startdaemons.sh
289
-        echo $"Restore of GNU Social complete"
289
+        echo $"Restore of gnusocial complete"
290
     fi
290
     fi
291
 }
291
 }
292
 
292
 
293
 function backup_remote_gnusocial {
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
         temp_backup_dir=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
296
         temp_backup_dir=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
297
         if [ -d $temp_backup_dir ]; then
297
         if [ -d $temp_backup_dir ]; then
298
             function_check suspend_site
298
             function_check suspend_site
309
             function_check restart_site
309
             function_check restart_site
310
             restart_site
310
             restart_site
311
         else
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
         fi
313
         fi
314
     fi
314
     fi
315
 }
315
 }
316
 
316
 
317
 function restore_remote_gnusocial {
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
         # stop the daemons
322
         # stop the daemons
323
         cd /var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
323
         cd /var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
335
         # start the daemons
335
         # start the daemons
336
         cd /var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
336
         cd /var/www/${MICROBLOG_DOMAIN_NAME}/htdocs
337
         scripts/startdaemons.sh
337
         scripts/startdaemons.sh
338
-        echo $"Restore of GNU Social complete"
338
+        echo $"Restore of gnusocial complete"
339
     fi
339
     fi
340
 }
340
 }
341
 
341
 
362
     function_check remove_onion_service
362
     function_check remove_onion_service
363
     remove_onion_service microblog ${MICROBLOG_ONION_PORT}
363
     remove_onion_service microblog ${MICROBLOG_ONION_PORT}
364
     sed -i '/install_gnusocial/d' $COMPLETION_FILE
364
     sed -i '/install_gnusocial/d' $COMPLETION_FILE
365
-    sed -i '/GNU Social /d' $COMPLETION_FILE
365
+    sed -i '/gnusocial /d' $COMPLETION_FILE
366
     if grep -q "gnusocial" /etc/crontab; then
366
     if grep -q "gnusocial" /etc/crontab; then
367
         sed -i "/gnusocial/d" /etc/crontab
367
         sed -i "/gnusocial/d" /etc/crontab
368
     fi
368
     fi
408
 
408
 
409
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
409
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
410
     git checkout $MICROBLOG_COMMIT -b $MICROBLOG_COMMIT
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
     else
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
     fi
415
     fi
416
 
416
 
417
     chmod a+w /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
417
     chmod a+w /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
547
 
547
 
548
     # NOTE: For the typical case always enable SSL and only
548
     # NOTE: For the typical case always enable SSL and only
549
     # disable it if in onion only mode. This is due to complexities
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
     gnusocial_ssl='always'
551
     gnusocial_ssl='always'
552
     if [[ $ONION_ONLY != 'no' ]]; then
552
     if [[ $ONION_ONLY != 'no' ]]; then
553
         gnusocial_ssl='never'
553
         gnusocial_ssl='never'
563
     # Create the configuration
563
     # Create the configuration
564
     gnusocial_installer=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs/scripts/install_cli.php
564
     gnusocial_installer=/var/www/${MICROBLOG_DOMAIN_NAME}/htdocs/scripts/install_cli.php
565
     if [ ! -f $gnusocial_installer ]; then
565
     if [ ! -f $gnusocial_installer ]; then
566
-        echo $'No GNU Social commandline installer found'
566
+        echo $'No gnusocial commandline installer found'
567
         exit 53026
567
         exit 53026
568
     fi
568
     fi
569
     ${gnusocial_installer} --server "${MICROBLOG_SERVER}" \
569
     ${gnusocial_installer} --server "${MICROBLOG_SERVER}" \
638
         fi
638
         fi
639
     fi
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
     else
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
     fi
645
     fi
646
 
646
 
647
     install_completed gnusocial_main
647
     install_completed gnusocial_main
657
 
657
 
658
     # update to the next commit
658
     # update to the next commit
659
     function_check set_repo_commit
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
     if [[ $(app_is_installed gnusocial_plugin_sharings) == "1" ]]; then
662
     if [[ $(app_is_installed gnusocial_plugin_sharings) == "1" ]]; then
663
         return
663
         return
693
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en/LC_MESSAGES
693
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en/LC_MESSAGES
694
     msgfmt -o Sharings.mo Sharings.po
694
     msgfmt -o Sharings.mo Sharings.po
695
     if [ ! -f Sharings.po ]; then
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
         exit 84352
697
         exit 84352
698
     fi
698
     fi
699
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_GB/LC_MESSAGES
699
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_GB/LC_MESSAGES
700
     msgfmt -o Sharings.mo Sharings.po
700
     msgfmt -o Sharings.mo Sharings.po
701
     if [ ! -f Sharings.po ]; then
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
         exit 84352
703
         exit 84352
704
     fi
704
     fi
705
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_US/LC_MESSAGES
705
     cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Sharings/locale/en_US/LC_MESSAGES
706
     msgfmt -o Sharings.mo Sharings.po
706
     msgfmt -o Sharings.mo Sharings.po
707
     if [ ! -f Sharings.po ]; then
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
         exit 84352
709
         exit 84352
710
     fi
710
     fi
711
 
711
 
712
     chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
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
     else
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
     fi
718
     fi
719
     install_completed gnusocial_plugin_sharings
719
     install_completed gnusocial_plugin_sharings
720
 }
720
 }
727
 
727
 
728
     # update to the next commit
728
     # update to the next commit
729
     function_check set_repo_commit
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
     if [[ $(app_is_installed gnusocial_plugin_sharings_theme) == "1" ]]; then
732
     if [[ $(app_is_installed gnusocial_plugin_sharings_theme) == "1" ]]; then
733
         return
733
         return
757
 
757
 
758
     chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
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
     else
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
     fi
764
     fi
765
     install_completed gnusocial_plugin_sharings_theme
765
     install_completed gnusocial_plugin_sharings_theme
766
 }
766
 }
774
 
774
 
775
     echo '<?php' > $gnusocial_expire_script
775
     echo '<?php' > $gnusocial_expire_script
776
     echo '' >> $gnusocial_expire_script
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
     echo '// https://github.com/tonybaldwin/statexpire' >> $gnusocial_expire_script
778
     echo '// https://github.com/tonybaldwin/statexpire' >> $gnusocial_expire_script
779
     echo '' >> $gnusocial_expire_script
779
     echo '' >> $gnusocial_expire_script
780
     echo '$oldate=date(("Y-m-d"), strtotime("-3 months"));' >> $gnusocial_expire_script
780
     echo '$oldate=date(("Y-m-d"), strtotime("-3 months"));' >> $gnusocial_expire_script
804
     echo '$rowaff3=mysql_affected_rows();' >> $gnusocial_expire_script
804
     echo '$rowaff3=mysql_affected_rows();' >> $gnusocial_expire_script
805
     echo 'mysql_close();' >> $gnusocial_expire_script
805
     echo 'mysql_close();' >> $gnusocial_expire_script
806
     echo '' >> $gnusocial_expire_script
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
     chmod +x $gnusocial_expire_script
808
     chmod +x $gnusocial_expire_script
809
 
809
 
810
     # Add a cron job
810
     # Add a cron job
821
 function install_gnusocial_theme {
821
 function install_gnusocial_theme {
822
     # update to the next commit
822
     # update to the next commit
823
     function_check set_repo_commit
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
     # customise with project logo
826
     # customise with project logo
827
     if [ -f /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Qvitter/img/sprite.png ]; then
827
     if [ -f /var/www/$MICROBLOG_DOMAIN_NAME/htdocs/local/plugins/Qvitter/img/sprite.png ]; then
910
         fi
910
         fi
911
     fi
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
     else
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
     fi
917
     fi
918
 
918
 
919
     chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
919
     chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
926
 
926
 
927
     # update to the next commit
927
     # update to the next commit
928
     function_check set_repo_commit
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
     if [[ $(app_is_installed gnusocial_markdown) == "1" ]]; then
931
     if [[ $(app_is_installed gnusocial_markdown) == "1" ]]; then
932
         return
932
         return
953
         echo "addPlugin('Markdown');" >> $microblog_config_file
953
         echo "addPlugin('Markdown');" >> $microblog_config_file
954
     fi
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
     else
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
     fi
960
     fi
961
 
961
 
962
     chown -R www-data:www-data $MICROBLOG_PATH
962
     chown -R www-data:www-data $MICROBLOG_PATH
972
 
972
 
973
     # update to the next commit
973
     # update to the next commit
974
     function_check set_repo_commit
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
     if grep -Fxq "install_gnusocial_plugin_nsfw" $COMPLETION_FILE; then
977
     if grep -Fxq "install_gnusocial_plugin_nsfw" $COMPLETION_FILE; then
978
         return
978
         return
1002
 
1002
 
1003
     chown -R www-data:www-data /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
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
     else
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
     fi
1009
     fi
1010
     install_completed gnusocial_plugin_nsfw
1010
     install_completed gnusocial_plugin_nsfw
1011
 }
1011
 }

+ 1
- 1
src/freedombone-app-rss 查看文件

550
     function_check git_clone
550
     function_check git_clone
551
     git_clone $RSS_READER_GNUSOCIAL_REPO ttrss-gnusocial
551
     git_clone $RSS_READER_GNUSOCIAL_REPO ttrss-gnusocial
552
     if [ ! -d $INSTALL_DIR/ttrss-gnusocial ]; then
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
         exit 52838
554
         exit 52838
555
     fi
555
     fi
556
     cp -r $INSTALL_DIR/ttrss-gnusocial $RSS_READER_GNUSOCIAL_PATH
556
     cp -r $INSTALL_DIR/ttrss-gnusocial $RSS_READER_GNUSOCIAL_PATH

+ 3
- 3
src/freedombone-rmuser 查看文件

95
     ${PROJECT_NAME}-rmsipuser $MY_USERNAME
95
     ${PROJECT_NAME}-rmsipuser $MY_USERNAME
96
 fi
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
     if [ -d /var/www/$MICROBLOG_DOMAIN_NAME ]; then
100
     if [ -d /var/www/$MICROBLOG_DOMAIN_NAME ]; then
101
         cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
101
         cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
102
         php scripts/deleteprofile.php -n $MY_USERNAME -y
102
         php scripts/deleteprofile.php -n $MY_USERNAME -y
103
-        echo $'Removed GNU Social user'
103
+        echo $'Removed gnusocial user'
104
     fi
104
     fi
105
 fi
105
 fi
106
 
106
 

+ 2
- 0
src/freedombone-utils-upgrade 查看文件

66
     sed -i 's|install_tox_node|install_tox|g' $COMPLETION_FILE
66
     sed -i 's|install_tox_node|install_tox|g' $COMPLETION_FILE
67
     sed -i 's|intrusion_detection|install_tripwire|g' $COMPLETION_FILE
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
     if [ -f /usr/local/bin/zeronetavahi ]; then
71
     if [ -f /usr/local/bin/zeronetavahi ]; then
70
         rm /usr/local/bin/zeronetavahi
72
         rm /usr/local/bin/zeronetavahi
71
     fi
73
     fi