mirror of
https://example.com
synced 2024-11-22 22:06:40 +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:
parent
d14bc4fb13
commit
8d281982ac
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue