diff options
author | taoka <taoka@FreeBSD.org> | 1999-04-22 23:58:54 +0800 |
---|---|---|
committer | taoka <taoka@FreeBSD.org> | 1999-04-22 23:58:54 +0800 |
commit | 92d6ab2d39172714e6d5dbb9a693c5b613c4f769 (patch) | |
tree | 6ad05c813c00973802e9ce00ed55ddf308de8947 /japanese/FreeWnn-server/pkg-install | |
parent | ca224fb55158233a4b1f858ba10995be2f62e289 (diff) | |
download | freebsd-ports-gnome-92d6ab2d39172714e6d5dbb9a693c5b613c4f769.tar.gz freebsd-ports-gnome-92d6ab2d39172714e6d5dbb9a693c5b613c4f769.tar.zst freebsd-ports-gnome-92d6ab2d39172714e6d5dbb9a693c5b613c4f769.zip |
To use ${BATCH}
Noticed by: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
Diffstat (limited to 'japanese/FreeWnn-server/pkg-install')
-rw-r--r-- | japanese/FreeWnn-server/pkg-install | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/japanese/FreeWnn-server/pkg-install b/japanese/FreeWnn-server/pkg-install index 8a32fa8c9fce..a30d1a3933b9 100644 --- a/japanese/FreeWnn-server/pkg-install +++ b/japanese/FreeWnn-server/pkg-install @@ -76,14 +76,21 @@ EOF # add an account 'wnn' to this system echo "" echo "You need an account 'wnn' whose ID number is 69" - if yesno "Would you like to create it automatically?" y; then - # We need a command 'pw(8)' + if [ -z "${BATCH}" ]; then + if yesno "Would you like to create it automatically?" y; then + # We need a command 'pw(8)' + check_pw + pw useradd wnn -u 69 -g 7 -h - -d /nonexistent \ + -s /nonexistent -c Wnn || exit + else + echo "Please create it, and try again." + exit 1 + fi + else + echo "Create it automatically!" check_pw pw useradd wnn -u 69 -g 7 -h - -d /nonexistent \ - -s /nonexistent -c Wnn || exit - else - echo "Please create it, and try again." - exit 1 + -s /nonexistent -c Wnn || exit fi ;; |