Skip to content

Commit 0ad5557

Browse files
committed
fix(start): check multiple possible index files before copy default placeholder. close #10
1 parent 7c4080e commit 0ad5557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spaceonfire/bin/sof-start

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ else
3434
fi
3535

3636
# Copy default index.html
37-
if [ ! -e "$WEBROOT/index.html" ]; then
37+
if [ $(ls /var/www/html/index.{php,htm,html} 2>/dev/null | wc -l) -eq 0 ]; then
3838
cp -f /opt/spaceonfire/html/index.html $WEBROOT
3939
fi
4040

0 commit comments

Comments
 (0)