dev: --no-confirm -> --skip-all-confirmations
This commit is contained in:
parent
8b5507abcc
commit
5a35e903f4
2 changed files with 10 additions and 6 deletions
|
@ -248,15 +248,17 @@ ToDo (#82)
|
|||
mk1=#
|
||||
```
|
||||
1. 以下のコマンドを実行して PGroonga の拡張機能を有効にする
|
||||
```
|
||||
```sql
|
||||
CREATE EXTENSION pgroonga;
|
||||
```
|
||||
1. `\q` というコマンドを実行するか Ctrl+D を押して PostgreSQL のプロンプトを終了する
|
||||
1. 新しい Firefish のディレクトリに入ってビルドする
|
||||
```sh
|
||||
$ cd calckey
|
||||
$ ./update.sh --no-confirm
|
||||
$ ./update.sh --skip-all-confirmations
|
||||
```
|
||||
|
||||
**注意**: `--skip-all-confirmations` というオプションは普段のアップデートでは使わないでください。重要なお知らせがある場合でも表示がスキップされてしまいます。
|
||||
1. サーバーを起動して動作を確認する
|
||||
```sh
|
||||
$ sudo systemctl start yourserver.example.com
|
||||
|
|
10
update.sh
10
update.sh
|
@ -22,7 +22,7 @@ function running {
|
|||
say "Start upgrading Firefish!"
|
||||
|
||||
# Confirm that the server is stopped
|
||||
if [[ $# != 1 ]] || [[ $1 != "--no-confirm" ]]; then
|
||||
if [[ $# != 1 ]] || [[ $1 != "--skip-all-confirmations" ]]; then
|
||||
say "Did you stop your server?"
|
||||
read -r -p "[Y/n] > " yn
|
||||
case "${yn}" in
|
||||
|
@ -66,9 +66,9 @@ fi
|
|||
for message in neko/messages/*; do
|
||||
file=$(basename -- "${message}")
|
||||
if [[ ! -f "neko/flags/${file}" ]]; then
|
||||
say "There is an important notice!"
|
||||
cat "${message}"
|
||||
if [[ $# != 1 ]] || [[ $1 != "--no-confirm" ]]; then
|
||||
if [[ $# != 1 ]] || [[ $1 != "--skip-all-confirmations" ]]; then
|
||||
say "There is an important notice!"
|
||||
cat "${message}"
|
||||
say "Continue? (Are you ready for upgrading?)"
|
||||
read -r -p "[y/N] > " yn
|
||||
case "${yn}" in
|
||||
|
@ -82,6 +82,8 @@ for message in neko/messages/*; do
|
|||
exit 1
|
||||
;;
|
||||
esac
|
||||
else
|
||||
touch "neko/flags/${file}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue