add export to env variables

This commit is contained in:
Maxim Slipenko 2023-09-19 11:47:18 +00:00 committed by GitHub
parent e0884456b1
commit 773db8e16f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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