diff --git a/install-app.sh b/install-app.sh index 505ff5c..5f5ff31 100644 --- a/install-app.sh +++ b/install-app.sh @@ -11,10 +11,10 @@ sudo apt-get update -yq sudo apt-get install python3-pip -yq # Create a directory for the app and download the files. -mkdir /app +sudo mkdir /app # make sure to uncomment the line bellow and update the link with your GitHub username # git clone https://github.com//azure_task_12_deploy_app_with_vm_extention.git -sudo cp -r devops_todolist_terraform_task/app/* /app +sudo cp -r ./app/* /app # create a service for the app via systemctl and start the app sudo mv /app/todoapp.service /etc/systemd/system/ diff --git a/variables.tf b/variables.tf index 1b81204..5100f48 100644 --- a/variables.tf +++ b/variables.tf @@ -65,7 +65,7 @@ variable "ssh_key" { variable "blob_url" { type = string - default = "https://raw.githubusercontent.com/mate-academy/devops_todolist_terraform_task/main/install-app.sh" + default = "https://raw.githubusercontent.com/Serveladik/devops_todolist_terraform_task/main/install-app.sh" } variable "storage_account_name" { @@ -80,5 +80,5 @@ variable "storage_container_name" { variable "source_file_path" { type = string - default = "https://raw.githubusercontent.com/mate-academy/devops_todolist_terraform_task/main/install-app.sh" + default = "https://raw.githubusercontent.com/Serveladik/devops_todolist_terraform_task/main/install-app.sh" }