mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 22:05:17 +00:00
* Move home directory vars to post-deploy scripts * Remove "export" word * Move home directory vars to post-deploy scripts * Remove "export" word * add variables via post-deployment file * remove quotes around PATH * remove quotes * Replace $HOME in /etc/environment in post-deployment script * rename variable * get rid of extra variable
6 lines
230 B
Bash
6 lines
230 B
Bash
#!/bin/bash
|
|
|
|
# Replace $HOME with the default user's home directory for environmental variables related to the default user home directory
|
|
|
|
homeDir=$(cut -d: -f6 /etc/passwd | tail -1)
|
|
sed -i "s|\$HOME|$homeDir|g" /etc/environment |