Skip to content

Commit 8ff0853

Browse files
committed
add a fallback and start bot1 only if manage.conf is not available
1 parent e267ef1 commit 8ff0853

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

scripts/manage.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44
### Also make sure that the locale it is activated in /etc/locale.gen
55
#export LANG="en_US.UTF-8"
66

7+
MANAGE_SCRIPT_SETTINGS_FILE="$HOME/src/manage.conf"
8+
79
# Read settings for this script
8-
source $HOME/src/manage.conf
10+
if [ -f "${MANAGE_SCRIPT_SETTINGS_FILE}" ]; then
11+
source "${MANAGE_SCRIPT_SETTINGS_FILE}"
12+
else
13+
# Start only bot1 as fallback if manage.conf does not exist.
14+
BOTS_ENABLED="1"
15+
fi
916

1017
function show_help() {
1118
cat<<EOF

0 commit comments

Comments
 (0)