mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 16:58:28 +00:00
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.
This commit is contained in:
parent
2fb3b1ebab
commit
6455f62447
@ -163,9 +163,9 @@ log "Install GNS3 packages"
|
|||||||
apt-get install -y gns3-server
|
apt-get install -y gns3-server
|
||||||
|
|
||||||
log "Create user GNS3 with /opt/gns3 as home directory"
|
log "Create user GNS3 with /opt/gns3 as home directory"
|
||||||
if [ ! -d "/opt/gns3/" ]
|
if [ ! -d "/opt/gns3" ]
|
||||||
then
|
then
|
||||||
useradd -m -d /opt/gns3/ gns3
|
useradd -m -d /opt/gns3 gns3
|
||||||
fi
|
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()'
|
python3 -c 'import sys; sys.path.append("/usr/local/bin/"); import welcome; ws = welcome.Welcome_dialog(); ws.repair_remote_install()'
|
||||||
cd /opt/gns3
|
cd /opt/gns3
|
||||||
su gns3
|
su gns3
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user