We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fc0b03 commit db49f51Copy full SHA for db49f51
spaceonfire/bin/sof-start
@@ -33,11 +33,6 @@ else
33
WEBROOT=/var/www/html
34
fi
35
36
-# Copy default index.html
37
-if [ $(ls /var/www/html/index.{php,htm,html} 2>/dev/null | wc -l) -eq 0 ]; then
38
- cp -f /opt/spaceonfire/html/index.html $WEBROOT
39
-fi
40
-
41
# Recreate nginx user with passed UID and GID
42
if [ ! -z "$PUID" ]; then
43
if [ -z "$PGID" ]; then
@@ -52,6 +47,12 @@ if [ -z "$SKIP_CHOWN" ]; then
52
47
chown -Rf nginx.nginx /var/www/html
53
48
54
49
50
+# Copy default index.html
51
+if [ $(ls $WEBROOT/index.{php,htm,html} 2>/dev/null | wc -l) -eq 0 ]; then
+ cp -f /opt/spaceonfire/html/index.html $WEBROOT
+ chown -f nginx.nginx "$WEBROOT/index.html"
+fi
55
+
56
if [ ! -z "$SOF_PRESET" ]; then
57
select-preset $SOF_PRESET
58
0 commit comments