diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-10-05 23:37:55 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-10-05 23:37:55 +0200 |
commit | 3babc2c64aa406bb94caa8689c7e59fc3c1eb3c1 (patch) | |
tree | efcf4a65e2df83bd129cde5042326ea938ca7446 /bin | |
parent | 54e54fe0683991860c9c54f6bd31f01be23cae0e (diff) | |
download | Puppet-3babc2c64aa406bb94caa8689c7e59fc3c1eb3c1.tar.gz Puppet-3babc2c64aa406bb94caa8689c7e59fc3c1eb3c1.tar.zst Puppet-3babc2c64aa406bb94caa8689c7e59fc3c1eb3c1.zip |
Add help to install script
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/install_script.sh | 19 |
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 | ||
3 | usage() { | ||
4 | cat <<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) | ||
15 | EOF | ||
16 | } | ||
17 | |||
3 | set -e | 18 | set -e |
4 | 19 | ||
5 | host_user=root | 20 | host_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 |