AI Implementation feature(1089): Scheduled Execution with Cron and Retry Handling (#9)
This commit was merged in pull request #9.
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
cd /app
|
||||
|
||||
bot_uid="$(id -u bot)"
|
||||
bot_gid="$(id -g bot)"
|
||||
|
||||
if command -v setpriv >/dev/null 2>&1; then
|
||||
exec setpriv --reuid="${bot_uid}" --regid="${bot_gid}" --clear-groups -- \
|
||||
/usr/local/bin/python -m tenbackward
|
||||
fi
|
||||
|
||||
exec su -s /bin/bash bot -c "exec /usr/local/bin/python -m tenbackward"
|
||||
Reference in New Issue
Block a user