FIX: setup script would crash if proceeding when config file exists
Basically all configuration variables are set in the if block governed by the existence of config.ini. If the file already exists, the script would quickly run into uninitialized variables and crash. The script will now refuse to proceed if config.ini exists.
This commit is contained in:
parent
a399fd11a5
commit
23941176ba
2
setup.sh
2
setup.sh
@ -84,7 +84,7 @@ if ! [ -e "$app_base/config.ini" ]; then
|
||||
echo "NOTE: you will need to manually set the values in the [oauth] section to something meaningful."
|
||||
echo
|
||||
else
|
||||
echo "Config file exists."
|
||||
die "Config file exists, cannot proceed."
|
||||
fi
|
||||
echo
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user