Remove the default configuration file (config.inc) and print the message.

This commit is contained in:
2018-05-14 00:54:53 +09:00
parent c7b101f3dc
commit c84145dab7
2 changed files with 6 additions and 4 deletions
+6 -1
View File
@@ -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
-3
View File
@@ -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