home · contact · privacy
Accomodate plomlombot start-up argument changes.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 26 Jun 2020 19:11:06 +0000 (21:11 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 26 Jun 2020 19:11:06 +0000 (21:11 +0200)
buster/other_files/plomlombot_daemon.sh

index 7847d25ce3e3af59f04da98572fc483b76b53346..276c6021da9561874fcab0b50ac691fb4569ec46 100755 (executable)
@@ -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)