瀏覽代碼

Update 60_update_get_the_site.sh

sparklyballs 9 年之前
父節點
當前提交
d10fa16ac9
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      init/60_update_get_the_site.sh

+ 1 - 2
init/60_update_get_the_site.sh

@@ -1,8 +1,7 @@
 #!/bin/bash
 
-cp /defaults/photoshow /config/nginx/site-confs/default
-
 if [ ! -f "/config/www/PhotoShow/config.php" ]; then
+cp /defaults/photoshow /config/nginx/site-confs/default
 echo "fetching photoshow files from github"
 git clone https://github.com/thibaud-rohmer/PhotoShow.git /config/www/PhotoShow
 sed -i -e 's/$config->photos_dir.\+/$config->photos_dir = "\/Pictures";/' /config/www/PhotoShow/config.php