X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fremote-installer.git;a=blobdiff_plain;f=scripts%2Fstart.sh;h=1e3a6fe7f27949ae38c81d8a99532cdf7d719925;hp=ca3b7e4e092c8e141630a8af783d05b0cb8089d1;hb=a772a381a84dd9b906a06c314b113b997bce71f4;hpb=d8795ffdbafa06c8fbe943878dc4d51de1105d69 diff --git a/scripts/start.sh b/scripts/start.sh index ca3b7e4..1e3a6fe 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -34,15 +34,15 @@ error() help() { - echo -e "$(basename $0) [-h -a -c -i -r -s ] -b -e " - echo -e " -h display this help" - echo -e " -a rest API port, default $API_PORT" + echo -e "$(basename $0) [-h -a -c -i -r -s ] -b -e " + echo -e " -h display this help" + echo -e " -a rest API port, default $API_PORT" echo -e " -c container name, default $CONT_NAME" - echo -e " -b base directory, which contains images, certificates, etc." - echo -e " -e external ip address of the docker" - echo -e " -i secure https port, default $IMG_NAME" - echo -e " -p root password, default $ROOT_PW" - echo -e " -s secure https port, default $HTTPS_PORT" + echo -e " -b base directory, which contains images, certificates, etc." + echo -e " -e external ip address of the docker" + echo -e " -i secure https port, default $IMG_NAME" + echo -e " -p root password, default $ROOT_PW" + echo -e " -s secure https port, default $HTTPS_PORT" } while getopts "ha:b:e:s:c:p:i:" arg; do @@ -52,10 +52,10 @@ while getopts "ha:b:e:s:c:p:i:" arg; do exit 0 ;; b) - BASE_DIR="$OPTARG" + BASE_DIR="$OPTARG" ;; e) - EXT_IP="$OPTARG" + EXT_IP="$OPTARG" ;; s) HTTPS_PORT="$OPTARG" @@ -69,6 +69,9 @@ while getopts "ha:b:e:s:c:p:i:" arg; do i) IMG_NAME="$OPTARG" ;; + p) + ROOT_PW="$OPTARG" + ;; *) error "Unknow argument!" showhelp ;;