diff options
author | davor <vorgrimmlerdavid@gmx.de> | 2012-09-11 12:32:42 +0200 |
---|---|---|
committer | davor <vorgrimmlerdavid@gmx.de> | 2012-09-11 12:32:42 +0200 |
commit | d4e5755ec93e58cb0eede5a5d443a65f3b1c094a (patch) | |
tree | 72b34fb8a11909bbb32ca4e6b3d4aec760062c3a | |
parent | 1aee5060597078cb5d011fbec858044425956484 (diff) |
Added silent mode.
-rwxr-xr-x | bin/opentox-server-install | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/bin/opentox-server-install b/bin/opentox-server-install index e832cd4..049b8de 100755 --- a/bin/opentox-server-install +++ b/bin/opentox-server-install @@ -6,10 +6,20 @@ SELF=$(basename $0 -install) [ "`id -u`" = "0" ] && echo "This script must be run as non-root." 1>&2 && exit 1 -echo -echo "Welcome to service installation (<Return> to continue)." -read delete_me +SILENT=false +if [ -n "$1" ] +then + if [ "$1" = "silent" ] + then + SILENT=true + fi +fi +if [ $SILENT = false ]; then + echo + echo "Welcome to service installation (<Return> to continue)." + read delete_me +fi # check wd is root of service DIR=`pwd` @@ -44,7 +54,9 @@ install_ruby echo install_with_bundler -notify +if [ $SILENT = false ]; then + notify +fi # return to wd cd "$DIR" |