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 diff
1.1 --- a/s4-start.sh Mon Aug 03 14:11:53 2015 +0900 1.2 +++ b/s4-start.sh Mon Aug 03 16:06:50 2015 +0900 1.3 @@ -24,9 +24,10 @@ 1.4 EOF 1.5 exit 0 1.6 } 1.7 -while getopts a:fht: f; do 1.8 +while getopts a:fght: f; do 1.9 case $f in 1.10 a) ADMIN=$OPTARG;; 1.11 + g) guest=1;; 1.12 f) force=1;; 1.13 t) TYPE=$OPTARG;; 1.14 \?|h) usage; exit 1;; 1.15 @@ -78,7 +79,8 @@ 1.16 cat<<EOF 1.17 -------- The s4 System Successfully Installed -------- 1.18 EOF 1.19 - echo "ADMIN=$ADMIN" >> s4-config.sh && rc=0 1.20 + (echo "ADMIN=$ADMIN" 1.21 + [ "$GUEST" ] && echo "guestonlymode=1") >> s4-config.sh && rc=0 1.22 else 1.23 echo Calling s4-init.sh 'FAILED!!' 1.24 fi