From 4854d0d05153bbc842525b7409079d9fc32ac45d Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Tue, 2 Mar 2021 18:26:41 +0100 Subject: [PATCH] bashbot.rc: fix webhook --- bashbot.rc | 29 ++++++++++++++++------------- bin/process_batch.sh | 4 ++-- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/bashbot.rc b/bashbot.rc index 3e31c48..02f8059 100755 --- a/bashbot.rc +++ b/bashbot.rc @@ -5,9 +5,10 @@ # # tested on: ubuntu, opensuse, debian # -#### $$VERSION$$ v1.45-dev-60-g2415814 +#### $$VERSION$$ v1.45-dev-61-g7b8e391 # shellcheck disable=SC2009 # shellcheck disable=SC2181 +# shellcheck disable=SC2250 # ### BEGIN INIT INFO @@ -27,21 +28,21 @@ runcmd="echo Dry run:" # not activated until you edit lines below # Configuration Section # edit the next line to fit the user you want to run bashbot, e.g. nobody: -runas="nobody" +runas="www" # uncomment one of the example lines to fit your system # runcmd="su ${runas} -s /bin/bash -c " # runasuser with *su* -# runcmd="runuser ${runas} -s /bin/bash -c " # runasuser with *runuser* +runcmd="/usr/sbin/runuser ${runas} -s /bin/bash -c " # runasuser with *runuser* # edit the values of the following lines to fit your config: # your bot name as given to botfather, e.g. mysomething_bot -name="" +name="GnadelTest_bot" # your bot installation dir -bashbotdir="/usr/local/telegram-bot-bash" +bashbotdir="/usr/local/github/telegram-bot-bash-develop/DIST/telegram-bot-bash" databotdir="${bashbotdir}/data-bot-bash" # programs to run bashbot="cd ${bashbotdir}; ${bashbotdir}/bashbot.sh" -webhook="cd ${bashbotdir}; ${bashbotdir}/bin/process_batch.sh --start --watch ${databotdir}/webhook-fifo-${name}" +webhook="cd ${bashbotdir}; ${bashbotdir}/bin/process_batch.sh --startbot --watch ${databotdir}/webhook-fifo-${name} &" # set additionl parameter, e.g. debug mode="" @@ -52,32 +53,34 @@ mode="" case "$1" in 'start') - # shellcheck disable=SC2250 $runcmd "$bashbot start $mode" # >/dev/null 2>&1 /dev/null 2>&1