From 8d281982ac5be8cb9a5e82b6501cd4a9833b1c9d Mon Sep 17 00:00:00 2001 From: naskya Date: Tue, 9 Jan 2024 19:53:36 +0900 Subject: [PATCH] dev: add ability to pass --server-is-stopped to update.sh This enables (semi-)automated upgrading: ```sh sudo systemctl stop firefish.service ./update.sh --native --server-is-stopped sudo systemctl start firefish.service ``` see also: d14bc4fb13f660b0416e9e0fd97e5420f02c35e6 --- neko/update/native.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neko/update/native.sh b/neko/update/native.sh index 9a705a48..01c615a7 100755 --- a/neko/update/native.sh +++ b/neko/update/native.sh @@ -4,7 +4,7 @@ set -eu . neko/update/utils # Confirm that the server is stopped -if ! contains '--install' "$@"; then +if ! contains '--install' "$@" && ! contains '--server-is-stopped' "$@"; then say 'Did you stop your server?' printf '[Y/n] > ' read -r yn