소스 검색

Improve the index.html

Johannes Zellner 9 년 전
부모
커밋
2fdb060ad3
2개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 0
      index.html
  2. 5 3
      start.sh

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 2 - 0
index.html


+ 5 - 3
start.sh

@@ -4,9 +4,11 @@ set -eu
 
 mkdir -p /app/data/public /run/app /run/apache2
 
-if [ ! -f "/app/data/public/index.html" ]; then
-    cp /app/code/index.html /app/data/public/index.html
-fi
+# check if any index file exists
+for f in /app/data/public/index.*; do
+    [ -e "$f" ] && echo "Do not override existing index file" || cp /app/code/index.html /app/data/public/index.html
+    break
+done
 
 if [ ! -f "/app/data/apache2-app.conf" ]; then
     cp /app/code/apache2-app.conf /app/data/apache2-app.conf

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.