Run the entire setup script in tmux

This commit is contained in:
Manuel Thalmann 2024-10-31 21:52:01 +01:00
parent fd5fc86b1b
commit 15bfed7f1f

View file

@ -8,6 +8,9 @@ if [ (id -u) -eq 0 ]
set -l sudoConfig "/etc/sudoers.d/PortValhalla" set -l sudoConfig "/etc/sudoers.d/PortValhalla"
rm ~/.bash_profile rm ~/.bash_profile
if [ -z "$TMUX" ]
tmux new-session (cat /proc/$fish_pid/cmdline | string split0)
else
begin begin
echo "Creating setup user" echo "Creating setup user"
@ -28,6 +31,7 @@ if [ (id -u) -eq 0 ]
and sudo --preserve-env --set-home --user "$name" "$INSTALLER_SCRIPT" and sudo --preserve-env --set-home --user "$name" "$INSTALLER_SCRIPT"
rm "$sudoConfig" rm "$sudoConfig"
userdel -rf "$name" userdel -rf "$name"
end
else else
if not type -q getDeploymentScript if not type -q getDeploymentScript
function getDeploymentScript function getDeploymentScript