Spaces:
Runtime error
Runtime error
Commit
·
13f64bb
1
Parent(s):
c45ec4f
Update start.sh
Browse files
start.sh
CHANGED
@@ -7,6 +7,8 @@ service nginx start &> /dev/null
|
|
7 |
if [ $? -ne 0 ]; then
|
8 |
echo "Nginx failed to start"
|
9 |
echo "Nginx error log:"
|
|
|
|
|
10 |
cat /var/log/nginx/error.log
|
11 |
exit 1
|
12 |
fi
|
|
|
7 |
if [ $? -ne 0 ]; then
|
8 |
echo "Nginx failed to start"
|
9 |
echo "Nginx error log:"
|
10 |
+
chown www-data:www-data /var/log/nginx/error.log
|
11 |
+
chmod 644 /var/log/nginx/error.log
|
12 |
cat /var/log/nginx/error.log
|
13 |
exit 1
|
14 |
fi
|