소스 검색

Update firstrun.sh

veizour 6 년 전
부모
커밋
9b697ddd54
1개의 변경된 파일과 10개의 추가작업 그리고 0개의 파일을 삭제
  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."