mirror of
https://github.com/Maks1mS/devcontainers-features.git
synced 2024-12-24 00:02:58 +03:00
add export to env variables
This commit is contained in:
parent
e0884456b1
commit
773db8e16f
@ -50,19 +50,16 @@ install_debian() {
|
|||||||
|
|
||||||
mkdir -p "$WINEPREFIX"
|
mkdir -p "$WINEPREFIX"
|
||||||
|
|
||||||
snippet="
|
snippet="export WINEHOME=\"$_REMOTE_USER_HOME\"
|
||||||
WINEHOME=\"$_REMOTE_USER_HOME\"
|
export WINEPREFIX=\"\$WINEHOME/.wine32\"
|
||||||
WINEPREFIX=\"\$WINEHOME/.wine32\"
|
export WINEARCH=win32
|
||||||
WINEARCH=win32
|
export WINEDEBUG=-all"
|
||||||
WINEDEBUG=-all
|
|
||||||
"
|
|
||||||
|
|
||||||
update_rc_file "$_REMOTE_USER_HOME/.zshenv" "${snippet}"
|
update_rc_file "$_REMOTE_USER_HOME/.zshenv" "${snippet}"
|
||||||
update_rc_file "$_REMOTE_USER_HOME/.profile" "${snippet}"
|
update_rc_file "$_REMOTE_USER_HOME/.profile" "${snippet}"
|
||||||
update_rc_file "$_REMOTE_USER_HOME/.bashrc" "${snippet}"
|
update_rc_file "$_REMOTE_USER_HOME/.bashrc" "${snippet}"
|
||||||
|
|
||||||
su -l "$_REMOTE_USER" -c "mkdir -p $WINEPREFIX"
|
su -l "$_REMOTE_USER" -c "mkdir -p $WINEPREFIX && wine wineboot --init"
|
||||||
su -l "$_REMOTE_USER" -c "wine wineboot --init"
|
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
apt purge --auto-remove -y
|
apt purge --auto-remove -y
|
||||||
|
Loading…
Reference in New Issue
Block a user