Explorar el Código

Update firstrun.sh

veizour hace 6 años
padre
commit
9b697ddd54
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      firstrun.sh

+ 10 - 0
firstrun.sh

@@ -1,5 +1,15 @@
 #!/bin/bash
 
+if [ $pull = "true" ]; then
+  if [ -f /var/www/html/configurations/ossn.config.db.php ]; then
+    mv -f /var/www/html/configurations/ossn.config.db.php /tmp/ossn.config.db.php
+  fi
+  if [ -f /var/www/html/configurations/ossn.config.site.php ]; then
+    mv -f /var/www/html/configurations/ossn.config.site.php /tmp/ossn.config.site.php
+  fi
+  rm -R /var/www/html
+fi
+  
 # Check if config exists. If not, copy in the sample config
 if [ -f /config/proxy-config.conf ]; then
   echo "Using saved config file."