Browse Source

Add pleroma social instance

Bob Mottram 7 years ago
parent
commit
6fa411c451
3 changed files with 25 additions and 6 deletions
  1. 6
    0
      src/freedombone
  2. 9
    0
      src/freedombone-config
  3. 10
    6
      src/freedombone-image-customise

+ 6
- 0
src/freedombone View File

@@ -77,6 +77,12 @@ if [[ "$command_options" == "menuconfig-postactiv" ]]; then
77 77
     SOCIALINSTANCE='postactiv'
78 78
 fi
79 79
 
80
+if [[ "$command_options" == "menuconfig-pleroma" ]]; then
81
+    MINIMAL_INSTALL="yes"
82
+    ONION_ONLY="no"
83
+    SOCIALINSTANCE='pleroma'
84
+fi
85
+
80 86
 if [ ! "$CONFIGURATION_FILE" ]; then
81 87
     CONFIGURATION_FILE="$HOME/${PROJECT_NAME}.cfg"
82 88
 fi

+ 9
- 0
src/freedombone-config View File

@@ -1142,6 +1142,15 @@ function interactive_config {
1142 1142
         install_postactiv
1143 1143
     fi
1144 1144
 
1145
+    if [[ "$SOCIALINSTANCE" == 'pleroma' ]]; then
1146
+        PLEROMA_DOMAIN_NAME=$DEFAULT_DOMAIN_NAME
1147
+        PLEROMA_CODE=$DEFAULT_DOMAIN_CODE
1148
+        write_config_param "PLEROMA_DOMAIN_NAME" "$PLEROMA_DOMAIN_NAME"
1149
+        write_config_param "PLEROMA_CODE" "$PLEROMA_CODE"
1150
+        write_config_param "SOCIALINSTANCE" "$SOCIALINSTANCE"
1151
+        install_pleroma
1152
+    fi
1153
+
1145 1154
     # delete the temporary configuration file
1146 1155
     if [ -f temp.cfg ]; then
1147 1156
         shred -zu temp.cfg

+ 10
- 6
src/freedombone-image-customise View File

@@ -391,14 +391,18 @@ EOF
391 391
             if [[ "$SOCIALINSTANCE" == "postactiv" ]]; then
392 392
                 echo "    ${PROJECT_NAME} menuconfig-postactiv" >> "$rootdir/root/.bashrc"
393 393
             else
394
-                if [[ "$ONION_ONLY" == "no" ]]; then
395
-                    if [[ "$MINIMAL_INSTALL" == "no" ]]; then
396
-                        echo "    ${PROJECT_NAME} menuconfig-full" >> "$rootdir/root/.bashrc"
394
+                if [[ "$SOCIALINSTANCE" == "pleroma" ]]; then
395
+                    echo "    ${PROJECT_NAME} menuconfig-pleroma" >> "$rootdir/root/.bashrc"
396
+                else
397
+                    if [[ "$ONION_ONLY" == "no" ]]; then
398
+                        if [[ "$MINIMAL_INSTALL" == "no" ]]; then
399
+                            echo "    ${PROJECT_NAME} menuconfig-full" >> "$rootdir/root/.bashrc"
400
+                        else
401
+                            echo "    ${PROJECT_NAME} menuconfig" >> "$rootdir/root/.bashrc"
402
+                        fi
397 403
                     else
398
-                        echo "    ${PROJECT_NAME} menuconfig" >> "$rootdir/root/.bashrc"
404
+                        echo "    ${PROJECT_NAME} menuconfig-onion" >> "$rootdir/root/.bashrc"
399 405
                     fi
400
-                else
401
-                    echo "    ${PROJECT_NAME} menuconfig-onion" >> "$rootdir/root/.bashrc"
402 406
                 fi
403 407
             fi
404 408
         fi