diff options
-rwxr-xr-x | install | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -5,10 +5,19 @@ [ "`id -u`" = "0" ] && echo "This script must not be run as root" 1>&2 && exit 1 +SILENT=false +if [ -n "$1" ] +then + if [ "$1" = "silent" ] + then + SILENT=true + fi +fi + echo echo "OpenTox Ruby" echo "Hit <Return> If all services are stoppped, else hit <Ctrl+C>." -read delete_me +[ $SILENT = false ] && read delete_me echo "Note: CONFIG (~/.opentox) will be backupped." mkdir -p $OT_PREFIX/tmp/ >/dev/null 2>&1 @@ -30,7 +39,7 @@ check_log `basename $0` echo echo "Welcome to base installation for OpenTox compatible services on Ruby and Debian." echo "IMPORTANT: Hit <Ctrl+C> to adjust config.sh first (<Return> to continue)." -read delete_me +[ $SILENT = false ] && read delete_me echo echo -n "We need to do some privileged action. " sudo echo -n "" |