Mercurial > hgrepos > hgweb.cgi > s4
changeset 87:573f0d54eb5c
guestonlymode
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 03 Aug 2015 16:06:50 +0900 |
parents | 518e3afcb230 |
children | e475a74e2699 |
files | s4-start.sh |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-start.sh Mon Aug 03 14:11:53 2015 +0900 +++ b/s4-start.sh Mon Aug 03 16:06:50 2015 +0900 @@ -24,9 +24,10 @@ EOF exit 0 } -while getopts a:fht: f; do +while getopts a:fght: f; do case $f in a) ADMIN=$OPTARG;; + g) guest=1;; f) force=1;; t) TYPE=$OPTARG;; \?|h) usage; exit 1;; @@ -78,7 +79,8 @@ cat<<EOF -------- The s4 System Successfully Installed -------- EOF - echo "ADMIN=$ADMIN" >> s4-config.sh && rc=0 + (echo "ADMIN=$ADMIN" + [ "$GUEST" ] && echo "guestonlymode=1") >> s4-config.sh && rc=0 else echo Calling s4-init.sh 'FAILED!!' fi