modification update
This commit is contained in:
10
bin/postauto
10
bin/postauto
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user