Browse Source

Remove the initial armadillo config if necessary

Bob Mottram 7 years ago
parent
commit
90501bd145
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/freedombone-utils-gnusocialtools

+ 3
- 0
src/freedombone-utils-gnusocialtools View File

@@ -849,6 +849,9 @@ function gnusocial_use_armadillo {
849 849
         sed -i "s|// addPlugin('Qvitter')|addPlugin('Qvitter')|g" /var/www/$domain_name/htdocs/config.php
850 850
     fi
851 851
 
852
+    if [ -f $INSTALL_DIR/armadillo/armadillo/config.json ]; then
853
+        rm $INSTALL_DIR/armadillo/armadillo/config.json
854
+    fi
852 855
     cp -r $INSTALL_DIR/armadillo/armadillo/* /var/www/${domain_name}/htdocs/armadillo
853 856
     cp $INSTALL_DIR/armadillo/armadillo.html /var/www/${domain_name}/htdocs/index.html
854 857
     cp $INSTALL_DIR/armadillo/dash.html /var/www/${domain_name}/htdocs/dash.html