Zenika-Training / strigo-init-script-libs

Script snippets for Strigo init scripts
3 stars 1 forks source link

Script does not work for a desktop VM Interface #32

Closed scandinave closed 2 years ago

scandinave commented 2 years ago

Due to the presence of

# Force restart tmux session to reload terminal
killall -9 /home/ubuntu/.strigo/tmux

Script fails on a Desktop VM because no tmux is available.

zigarn commented 2 years ago

We need a way to reload user session in desktop environment. Not a problem for code-server.sh (BTW, should be useless in desktop and better to install VSCode desktop) nor for java-maven-gradle-sdkman.sh, as the reload is only for shell which is not open yet in desktop. But needed for group in docker.sh.

scandinave commented 2 years ago

Yeah, it's a long standing issue in automating docker installation. This seems that the only solution is to restart the session. Does the launch of a reboot command as temporary workaround can work inside strigo environment ?

zigarn commented 2 years ago

reboot was the command launched before we found that restarting tmux was enough, but it's not the best. I'll try to find another way in Strigo Linux Desktop.