mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-19 04:18:11 -06:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
f7a5094cc3
|
|||
22f0003c53
|
|||
b08429c9ae
|
|||
7f81f891ab
|
|||
66c96f1fe7
|
|||
1e5523c1f7
|
|||
390f9cdc15
|
|||
f9503fe827
|
|||
c50b9e969f
|
|||
f9b4e4644a
|
@ -33,14 +33,20 @@ if [ "${HOME_USER-}" ]; then
|
|||||||
sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc"
|
sudo su - ${HOME_USER} -c "echo 'export $line' >> ~/.bashrc"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Changing the property of the directory /home/${HOME_USER}
|
# Copy the HOME variable from vscode user to HOME_USER
|
||||||
sudo chown -R ${HOME_USER}: /home/${HOME_USER}/
|
sudo su - ${HOME_USER} -c "echo 'export HOME=\"/home/\${HOME_USER}\"' >> ~/.bashrc"
|
||||||
|
|
||||||
|
# Copy the .bashrc file from vscode user to HOME_USER
|
||||||
|
sudo su - ${HOME_USER} -c "cat /home/vscode/.bashrc >> ~/.bashrc"
|
||||||
|
|
||||||
|
# Changing the property of the directory /home/${HOME_USER}/.vscode
|
||||||
|
sudo chown -R ${HOME_USER}: /home/${HOME_USER}/.vscode
|
||||||
|
|
||||||
# Changing the HOME_USER in the .bashrc file
|
# Changing the HOME_USER in the .bashrc file
|
||||||
sudo su - ${HOME_USER} -c 'sed -i "s|/home/vscode|/home/${HOME_USER}|g" ~/.bashrc'
|
sudo su - ${HOME_USER} -c 'sudo sed -i "s|/home/vscode|/home/${HOME_USER}|g" ~/.bashrc'
|
||||||
|
|
||||||
# Switch to the user specified by $HOME_USER and start an interactive shell session.
|
# Switch to the user specified by $HOME_USER and start an interactive shell session.
|
||||||
sudo -u $HOME_USER -i
|
sudo su -l ${HOME_USER}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2.0.34
|
2.0.44
|
Reference in New Issue
Block a user