1
0
Fork 1
mirror of https://example.com synced 2024-11-22 15:46:39 +09:00

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: d14bc4fb13
This commit is contained in:
naskya 2024-01-09 19:53:36 +09:00
parent d14bc4fb13
commit 8d281982ac
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -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