forked from Hakase/nginx-build
Remove the default configuration file (config.inc) and print the message.
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
### Read config
|
||||
. ./config.inc
|
||||
if [ ! -f "config.inc" ]; then
|
||||
echo "--- The configuration file (config.inc) could not be found. Apply as default setting. ---"
|
||||
echo "--- All additional modules are not used. ---"
|
||||
else
|
||||
. ./config.inc
|
||||
fi
|
||||
|
||||
### If the value is incorrect, convert to normal data.
|
||||
if [ ! "$SERVER_HEADER" ]; then SERVER_HEADER="hakase"; fi
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
### If you receive the source for the first time, type the following command to set it.
|
||||
### Then modify config.inc.
|
||||
cp config.inc.example config.inc
|
||||
Reference in New Issue
Block a user