mirror of
https://example.com
synced 2024-11-23 03:56: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:
parent
d14bc4fb13
commit
8d281982ac
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ set -eu
|
||||||
. neko/update/utils
|
. neko/update/utils
|
||||||
|
|
||||||
# Confirm that the server is stopped
|
# Confirm that the server is stopped
|
||||||
if ! contains '--install' "$@"; then
|
if ! contains '--install' "$@" && ! contains '--server-is-stopped' "$@"; then
|
||||||
say 'Did you stop your server?'
|
say 'Did you stop your server?'
|
||||||
printf '[Y/n] > '
|
printf '[Y/n] > '
|
||||||
read -r yn
|
read -r yn
|
||||||
|
|
Loading…
Reference in a new issue