diff --git a/add-rsapub-to-remote.sh b/add-rsapub-to-remote.sh index 183639a..d075f7c 100755 --- a/add-rsapub-to-remote.sh +++ b/add-rsapub-to-remote.sh @@ -4,7 +4,7 @@ if [ $1 ] then REMOTEHOST=$1 else - read -p "Enter user@remotehost " REMOTEHOST + read -p "Enter user@remotehost >> " REMOTEHOST fi scp ~/.ssh/id_rsa.pub $REMOTEHOST:~/tmp.pub diff --git a/add-user.sh b/add-user.sh index fd66324..378bfd7 100755 --- a/add-user.sh +++ b/add-user.sh @@ -5,7 +5,7 @@ if [ v$1 != v ] then NewUser=$1 else - read -p "Enter new user name: " NewUser + read -p "Enter new user name >> " NewUser fi echo "<<< Add a new user $NewUser" diff --git a/config-home.sh b/config-home.sh index 7053991..62e6512 100755 --- a/config-home.sh +++ b/config-home.sh @@ -1,14 +1,13 @@ #!/bin/bash echo "Usage: setup.sh [Source-Path-To-Config-Files]" -echo " (default to /faronear/lib/sysconfig)" echo "---------------------------------------------" if [ $1 ] then SourcePath=$1 else - read -p "Enter config source path : " SourcePath + read -p "Enter config source path (leave blank for /faronear/lib/sysconfig) >> " SourcePath if [ ! $SourcePath ] then echo Use default source path: /faronear/lib/sysconfig diff --git a/git-pull-all.sh b/git-pull-all.sh index e4bd7fa..c0aa4fd 100755 --- a/git-pull-all.sh +++ b/git-pull-all.sh @@ -4,7 +4,12 @@ if [ $1 ] then FONPATH=$1 else - read -p "Enter path-to-faronear " FONPATH + read -p "Enter path-to-faronear >> " FONPATH + if [ ! $FONPATH ] + then + echo Use default path: /faronear + SourcePath=/faronear + fi fi pushd $FONPATH diff --git a/install-lamp.sh b/install-lamp.sh index c5e377d..81b7bcc 100644 --- a/install-lamp.sh +++ b/install-lamp.sh @@ -5,6 +5,6 @@ git clone https://github.com/teddysun/lamp.git cd lamp chmod 755 *.sh -read -p "Enter root password of MySQL Server: " DBPWD +read -p "Enter root password of MySQL Server >> " DBPWD ./lamp.sh --apache_option 1 --db_option 3 --php_option 4 --db_manage_modules --db_root_pwd $DBPWD phpmyadmin --kodexplorer_option 1 \ No newline at end of file diff --git a/install-mongodb.sh b/install-mongodb.sh index 851a645..35867fc 100755 --- a/install-mongodb.sh +++ b/install-mongodb.sh @@ -7,7 +7,7 @@ if [ v$1 != v ] then mongoVersion=$1 else - read -p "Enter mongo version (leave blank for default 4.2) : " mongoVersion + read -p "Enter mongo version (leave blank for default 4.2) >> " mongoVersion if [ ! $mongoVersion ] then echo Use default mongo version 4.2 diff --git a/install-node.sh b/install-node.sh index 3cde153..44cfb62 100755 --- a/install-node.sh +++ b/install-node.sh @@ -1,13 +1,13 @@ #!/bin/bash -echo "Usage: setup.sh [VERSION(default to 10)]" +echo "Usage: setup.sh [nodeVersion]" echo "Example: setup.sh 12" if [ v$1 != v ] then nodeVersion=$1 else - read -p "Enter node version : " nodeVersion + read -p "Enter node version (leave blank for default 10) >> " nodeVersion if [ ! $nodeVersion ] then echo Use default node version 10 diff --git a/run-rsync.sh b/run-rsync.sh index f4ff96b..c12df04 100755 --- a/run-rsync.sh +++ b/run-rsync.sh @@ -2,14 +2,14 @@ if [ $1 ] then LOCALPATH=$1 else - read -p "Enter localpath " LOCALPATH + read -p "Enter localpath >> " LOCALPATH fi if [ $2 ] then REMOTEPATH=$2 else - read -p "Enter user@remotehost:path " REMOTEPATH + read -p "Enter user@remotehost:path >> " REMOTEPATH fi echo rsync -rvz -e ssh -p 22000 --progress $LOCALPATH $REMOTEHOST