aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2017-10-05 23:37:55 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2017-10-05 23:37:55 +0200
commit3babc2c64aa406bb94caa8689c7e59fc3c1eb3c1 (patch)
treeefcf4a65e2df83bd129cde5042326ea938ca7446 /bin
parent54e54fe0683991860c9c54f6bd31f01be23cae0e (diff)
downloadPuppet-3babc2c64aa406bb94caa8689c7e59fc3c1eb3c1.tar.gz
Puppet-3babc2c64aa406bb94caa8689c7e59fc3c1eb3c1.tar.zst
Puppet-3babc2c64aa406bb94caa8689c7e59fc3c1eb3c1.zip
Add help to install script
Diffstat (limited to 'bin')
-rwxr-xr-xbin/install_script.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/install_script.sh b/bin/install_script.sh
index 3a59006..15c770c 100755
--- a/bin/install_script.sh
+++ b/bin/install_script.sh
@@ -1,5 +1,20 @@
1#!/bin/bash 1#!/bin/bash
2 2
3usage() {
4cat <<EOF
5 $0 [options]
6 --help,-h This help
7 --vps vps_name Name of the vps
8 --password password Password of the vps (only useful in case of no reboot)
9 --reinstall-first Start with reinstalling the vps
10 --host-user user Use another user (default: root)
11 --no-reboot Don't reboot
12 --no-reboot-start Don't reboot to rescue at the beginning
13 --no-reboot-end Don't reboot to normal at the end
14 --git-branch Use another puppet branch (default: master)
15EOF
16}
17
3set -e 18set -e
4 19
5host_user=root 20host_user=root
@@ -35,6 +50,10 @@ while [ -n "$1" ]; do
35 git_branch="$2" 50 git_branch="$2"
36 shift 51 shift
37 ;; 52 ;;
53 --help|-h)
54 usage
55 exit 0
56 ;;
38 esac 57 esac
39 58
40 shift 59 shift