diff options
-rwxr-xr-x | bin/install_script.sh | 19 | ||||
-rw-r--r-- | python/reinstall_vps_server.py | 3 |
2 files changed, 21 insertions, 1 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 |
diff --git a/python/reinstall_vps_server.py b/python/reinstall_vps_server.py index 52fdc39..158ca23 100644 --- a/python/reinstall_vps_server.py +++ b/python/reinstall_vps_server.py | |||
@@ -76,7 +76,8 @@ else: | |||
76 | # GET /order/cart/{cartId}/checkout | 76 | # GET /order/cart/{cartId}/checkout |
77 | # POST /order/cart/{cartId}/checkout | 77 | # POST /order/cart/{cartId}/checkout |
78 | # waiveRetractationPeriod | 78 | # waiveRetractationPeriod |
79 | 79 | # Suite à tester : | |
80 | # /me/order/{orderId}/availableRegisteredPaymentMean | ||
80 | # /me/paymentMean ? /me/order/{orderId}/debt/pay ? | 81 | # /me/paymentMean ? /me/order/{orderId}/debt/pay ? |
81 | 82 | ||
82 | # Reboot in rescue: | 83 | # Reboot in rescue: |