From 773db8e16f8f2f4932c52174828fc586a129eeb6 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Tue, 19 Sep 2023 11:47:18 +0000 Subject: [PATCH] add export to env variables --- src/wine/install.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/wine/install.sh b/src/wine/install.sh index 97cfef3..1ef1fab 100644 --- a/src/wine/install.sh +++ b/src/wine/install.sh @@ -50,19 +50,16 @@ install_debian() { mkdir -p "$WINEPREFIX" - snippet=" - WINEHOME=\"$_REMOTE_USER_HOME\" - WINEPREFIX=\"\$WINEHOME/.wine32\" - WINEARCH=win32 - WINEDEBUG=-all - " + snippet="export WINEHOME=\"$_REMOTE_USER_HOME\" +export WINEPREFIX=\"\$WINEHOME/.wine32\" +export WINEARCH=win32 +export WINEDEBUG=-all" update_rc_file "$_REMOTE_USER_HOME/.zshenv" "${snippet}" update_rc_file "$_REMOTE_USER_HOME/.profile" "${snippet}" update_rc_file "$_REMOTE_USER_HOME/.bashrc" "${snippet}" - su -l "$_REMOTE_USER" -c "mkdir -p $WINEPREFIX" - su -l "$_REMOTE_USER" -c "wine wineboot --init" + su -l "$_REMOTE_USER" -c "mkdir -p $WINEPREFIX && wine wineboot --init" # Cleanup apt purge --auto-remove -y