1
0

modification update

This commit is contained in:
unfr
2025-02-21 11:50:20 +01:00
parent 7e264c0272
commit 7147b81529
4 changed files with 20 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ checkdb(){
}
do_start() {
do_update
checkdb
if screen -list | grep -q "$SCREEN_NAME"; then
echo "Le screen '$SCREEN_NAME' est déjà en cours d'exécution."
@@ -179,6 +180,10 @@ EOF
sqlite3 "$DB_FILE" "PRAGMA busy_timeout = 5000;"
}
do_update() {
wget -qO update.sh https://tig.unfr.pw/UNFR/postauto/raw/branch/main/update.sh && chmod +x update.sh && ./update.sh
}
case "$1" in
start)
do_start
@@ -195,6 +200,9 @@ case "$1" in
status)
do_status
;;
update)
do_update
;;
check)
if [ -z "$2" ]; then
echo "Usage: $0 add <release_path>"
@@ -220,7 +228,7 @@ case "$1" in
do_add "$@"
;;
*)
echo "Usage: $0 {start|stop|restart|show|add <release_path>}"
echo "Usage: $0 {start|stop|restart|show|log|check|update|add <release_path>}"
exit 1
;;
esac