Revert $BASH_ENV (#2982)

This commit is contained in:
Mikhail Timofeev
2021-03-18 21:58:04 +03:00
committed by GitHub
parent 8a34f3c527
commit 593aa6b100
5 changed files with 10 additions and 10 deletions

View File

@@ -7,14 +7,9 @@ echo ImageOS=$IMAGE_OS | tee -a /etc/environment
# Set the ACCEPT_EULA variable to Y value to confirm your acceptance of the End-User Licensing Agreement
echo ACCEPT_EULA=Y | tee -a /etc/environment
# Create a file to store user-related global environment variables
touch /etc/profile.d/env_vars.sh
# Set BASH_ENV variable pointed to the file with user-related global environment variables for non-interactive sessions
echo "BASH_ENV=/etc/profile.d/env_vars.sh" | tee -a /etc/environment
# This directory is supposed to be created in $HOME and owned by user(https://github.com/actions/virtual-environments/issues/491)
mkdir -p /etc/skel/.config/configstore
echo 'export XDG_CONFIG_HOME=$HOME/.config' | tee -a /etc/profile.d/env_vars.sh
echo 'export XDG_CONFIG_HOME=$HOME/.config' | tee -a /etc/skel/.bashrc
# Change waagent entries to use /mnt for swapfile
sed -i 's/ResourceDisk.Format=n/ResourceDisk.Format=y/g' /etc/waagent.conf