mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
set chmod -R 777 /opt
This commit is contained in:
11
images/linux/scripts/installers/post-deployment.sh
Normal file
11
images/linux/scripts/installers/post-deployment.sh
Normal 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
|
||||||
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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": [
|
||||||
|
|||||||
Reference in New Issue
Block a user