From cbc7e59d3f149ebd705cb6cffeb4fb1ec56db6a3 Mon Sep 17 00:00:00 2001 From: Dustin Date: Mon, 30 Oct 2023 11:00:45 -0400 Subject: [PATCH] Update remote-install.sh Removed an extra slash at the end when setting the user home directory. This was causing unexpected behavior for other scrips as ~ was aliased to /opt/gns3/ instead of the expected /opt/gns3. This caused an extra / to appear in commands unexpectedly. --- scripts/remote-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/remote-install.sh b/scripts/remote-install.sh index 4664cd04..6c68a640 100644 --- a/scripts/remote-install.sh +++ b/scripts/remote-install.sh @@ -163,9 +163,9 @@ log "Install GNS3 packages" apt-get install -y gns3-server log "Create user GNS3 with /opt/gns3 as home directory" -if [ ! -d "/opt/gns3/" ] +if [ ! -d "/opt/gns3" ] then - useradd -m -d /opt/gns3/ gns3 + useradd -m -d /opt/gns3 gns3 fi @@ -462,4 +462,4 @@ NEEDRESTART_MODE=a apt-get upgrade python3 -c 'import sys; sys.path.append("/usr/local/bin/"); import welcome; ws = welcome.Welcome_dialog(); ws.repair_remote_install()' cd /opt/gns3 su gns3 -fi \ No newline at end of file +fi