From: Christian Heller Date: Fri, 26 Jun 2020 19:11:06 +0000 (+0200) Subject: Accomodate plomlombot start-up argument changes. X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;h=27942fc7dfadcc26b4fff15974af2b0faa675730;p=config Accomodate plomlombot start-up argument changes. --- diff --git a/buster/other_files/plomlombot_daemon.sh b/buster/other_files/plomlombot_daemon.sh index 7847d25..276c602 100755 --- a/buster/other_files/plomlombot_daemon.sh +++ b/buster/other_files/plomlombot_daemon.sh @@ -26,13 +26,14 @@ while true; do server_name=$(echo -n "${line}" | cut -d' ' -f5) login_user=$(echo -n "${line}" | cut -d' ' -f6) login_pw=$(echo -n "${line}" | cut -d' ' -f7) + add_option=$(echo -n "${line}" | cut -d' ' -f8-) set +e screen -S "${session_name}" -Q select . > /dev/null start_screen=$? set -e if [ "${start_screen}" -eq "1" ]; then cd ~/plomlombot-irc - LANG="en_US.UTF-8" screen -d -m -S "${session_name}" ./run.sh -r 604800 -n "${bot_name}" -s "${server_name}" "${channel_name}" + LANG="en_US.UTF-8" screen -d -m -S "${session_name}" ./run.sh -r 604800 -n "${bot_name}" -s "${server_name}" -c "${channel_name}" "${add_option}" fi md5_server=$(echo -n "${server_name}" | md5sum | cut -d' ' -f1) md5_channel=$(echo -n "${channel_name}" | md5sum | cut -d' ' -f1)