aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
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