瀏覽代碼

Improve the index.html

Johannes Zellner 9 年之前
父節點
當前提交
2fdb060ad3
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 2 0
      index.html
  2. 5 3
      start.sh

File diff suppressed because it is too large
+ 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

Some files were not shown because too many files changed in this diff