]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Add help to install script
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 5 Oct 2017 21:37:55 +0000 (23:37 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 5 Oct 2017 21:37:55 +0000 (23:37 +0200)
bin/install_script.sh
python/reinstall_vps_server.py

index 3a5900689b6f0b74947656103e3de593d14115d0..15c770c15f2e7eb3606488e9e8e4df380310e5bf 100755 (executable)
@@ -1,5 +1,20 @@
 #!/bin/bash
 
+usage() {
+cat <<EOF
+  $0 [options]
+  --help,-h               This help
+  --vps vps_name          Name of the vps
+  --password password     Password of the vps (only useful in case of no reboot)
+  --reinstall-first       Start with reinstalling the vps
+  --host-user user        Use another user (default: root)
+  --no-reboot             Don't reboot
+  --no-reboot-start       Don't reboot to rescue at the beginning
+  --no-reboot-end         Don't reboot to normal at the end
+  --git-branch            Use another puppet branch (default: master)
+EOF
+}
+
 set -e
 
 host_user=root
@@ -35,6 +50,10 @@ while [ -n "$1" ]; do
       git_branch="$2"
       shift
       ;;
+    --help|-h)
+      usage
+      exit 0
+      ;;
   esac
 
   shift
index 52fdc39c21fcf217563d0776d4d537360816dffb..158ca232e6577f172270811dd8e39189c8fd8009 100644 (file)
@@ -76,7 +76,8 @@ else:
 # GET /order/cart/{cartId}/checkout
 # POST /order/cart/{cartId}/checkout
 #    waiveRetractationPeriod
-
+# Suite à tester :
+# /me/order/{orderId}/availableRegisteredPaymentMean
 # /me/paymentMean ? /me/order/{orderId}/debt/pay ?
 
 # Reboot in rescue: