Skip to content

Commit

Permalink
fix: Include current dir to import the file to source
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoulliard committed Jan 9, 2020
1 parent 347267f commit b628503
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hetzner/scripts/vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# ./scripts/vm.sh VM_NAME VM_TYPE VM_IMAGE SALT_TEXT USER_PWD
# e.g
# ./scripts/vm.sh cloud1 on cx31 centos-7 <SALT_TEXT> <USER_GENERATED_PWD>
# ./scripts/vm.sh cloud1 cx31 centos-7 <SALT_TEXT> <USER_GENERATED_PWD>

VM_NAME=${1:-cloud1}
VM_TYPE=${2:-cx31}
Expand All @@ -16,8 +16,8 @@ USER_PASSWORD=$5

BASH_SCRIPTS_DIR=$(dirname $0)

# Delete and create the Hetzner Cloud server
. create-hcloud-server.sh
# Delete and create the Hetzner Cloud vm
. $BASH_SCRIPTS_DIR/create-hcloud-server.sh

echo "#######################################"
echo "Execute the following command within a terminal to ssh to the vm"
Expand Down

0 comments on commit b628503

Please sign in to comment.