Fixed travis build.

This commit is contained in:
Shuai Lin 2016-11-21 13:26:41 +08:00
parent 5b3bc6ca0c
commit 53bc05d2ef
2 changed files with 3 additions and 3 deletions

View file

@ -14,5 +14,5 @@ script:
- sudo ./launcher bootstrap - sudo ./launcher bootstrap
- sudo ./launcher start && sleep 10 - sudo ./launcher start && sleep 10
- sudo ./launcher stop --skip-prereqs - sudo ./launcher stop --skip-prereqs
- sudo ./launcher start --docker-args="-h seafile-server" && sleep 10 - sudo ./launcher start --docker-args "-h seafile-server" && sleep 10
- sudo ./launcher restart - sudo ./launcher restart

View file

@ -201,7 +201,7 @@ restart() {
} }
check_prereqs() { check_prereqs() {
if [[ $skip_prereqs == "true" ]]; then if [[ $SKIP_PREREQS == "true" ]]; then
return 0 return 0
fi fi
@ -232,7 +232,7 @@ main() {
bootstrap|oldstart|start|stop|restart|enter|destroy|logs|rebuild) bootstrap|oldstart|start|stop|restart|enter|destroy|logs|rebuild)
action=$1 ; shift 1 ;; action=$1 ; shift 1 ;;
--debug) debug=true ; shift 1 ;; --debug) debug=true ; shift 1 ;;
--skip-prereqs) skip_prereqs=true ; shift 1 ;; --skip-prereqs) SKIP_PREREQS=true ; shift 1 ;;
--docker-args) user_args=$2 ; shift 2 ;; --docker-args) user_args=$2 ; shift 2 ;;
*) err_and_quit "Argument error. Please see help." ;; *) err_and_quit "Argument error. Please see help." ;;
esac esac