set chmod -R 777 /opt

This commit is contained in:
Aleksandr Chebotov
2020-09-21 11:18:28 +03:00
parent 2c60c78141
commit d4335cc52e
4 changed files with 50 additions and 18 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
################################################################################
## File: post-deployment.sh
## Desc: Post deployment actions
################################################################################
# set chmod -R 777 /opt
if [[ -d "/opt" ]]; then
echo "chmod -R 777 /opt"
chmod -R 777 /opt
fi

View File

@@ -301,15 +301,6 @@
"destination": "{{template_dir}}/Ubuntu1604-README.md", "destination": "{{template_dir}}/Ubuntu1604-README.md",
"direction": "download" "direction": "download"
}, },
{
"type": "shell",
"inline": [
"rm -rf {{user `helper_script_folder`}}",
"rm -rf {{user `installer_script_folder`}}",
"chmod 755 {{user `image_folder`}}"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{ {
"type": "shell", "type": "shell",
"scripts":[ "scripts":[
@@ -319,6 +310,22 @@
"RUN_VALIDATION={{user `run_validation_diskspace`}}" "RUN_VALIDATION={{user `run_validation_diskspace`}}"
] ]
}, },
{
"type": "shell",
"scripts":[
"{{template_dir}}/scripts/installers/post-deployment.sh"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"inline": [
"rm -rf {{user `helper_script_folder`}}",
"rm -rf {{user `installer_script_folder`}}",
"chmod 755 {{user `image_folder`}}"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{ {
"type": "file", "type": "file",
"source": "{{template_dir}}/config/ubuntu1604.conf", "source": "{{template_dir}}/config/ubuntu1604.conf",

View File

@@ -305,15 +305,6 @@
"destination": "{{template_dir}}/Ubuntu1804-README.md", "destination": "{{template_dir}}/Ubuntu1804-README.md",
"direction": "download" "direction": "download"
}, },
{
"type": "shell",
"inline": [
"rm -rf {{user `helper_script_folder`}}",
"rm -rf {{user `installer_script_folder`}}",
"chmod 755 {{user `image_folder`}}"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{ {
"type": "shell", "type": "shell",
"scripts":[ "scripts":[
@@ -323,6 +314,22 @@
"RUN_VALIDATION={{user `run_validation_diskspace`}}" "RUN_VALIDATION={{user `run_validation_diskspace`}}"
] ]
}, },
{
"type": "shell",
"scripts":[
"{{template_dir}}/scripts/installers/post-deployment.sh"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"inline": [
"rm -rf {{user `helper_script_folder`}}",
"rm -rf {{user `installer_script_folder`}}",
"chmod 755 {{user `image_folder`}}"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{ {
"type": "file", "type": "file",
"source": "{{template_dir}}/config/ubuntu1804.conf", "source": "{{template_dir}}/config/ubuntu1804.conf",

View File

@@ -316,6 +316,13 @@
"RUN_VALIDATION={{user `run_validation_diskspace`}}" "RUN_VALIDATION={{user `run_validation_diskspace`}}"
] ]
}, },
{
"type": "shell",
"scripts":[
"{{template_dir}}/scripts/installers/post-deployment.sh"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{ {
"type": "shell", "type": "shell",
"inline": [ "inline": [