mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 06:40:32 +00:00
21 lines
696 B
Bash
21 lines
696 B
Bash
#!/bin/bash -e
|
|
################################################################################
|
|
## File: configure-system.sh
|
|
## Desc: Post deployment system configuration actions
|
|
################################################################################
|
|
|
|
source $HELPER_SCRIPTS/etc-environment.sh
|
|
source $HELPER_SCRIPTS/os.sh
|
|
|
|
echo "chmod -R 777 /opt"
|
|
chmod -R 777 /opt
|
|
echo "chmod -R 777 /usr/share"
|
|
chmod -R 777 /usr/share
|
|
|
|
# Remove quotes around PATH
|
|
ENVPATH=$(grep 'PATH=' /etc/environment | head -n 1 | sed -z 's/^PATH=*//')
|
|
ENVPATH=${ENVPATH#"\""}
|
|
ENVPATH=${ENVPATH%"\""}
|
|
replace_etc_environment_variable "PATH" "${ENVPATH}"
|
|
echo "Updated /etc/environment: $(cat /etc/environment)"
|