diff --git a/scripts/remote-install.sh b/scripts/remote-install.sh index b92e68374..6c87e69ed 100644 --- a/scripts/remote-install.sh +++ b/scripts/remote-install.sh @@ -110,7 +110,17 @@ UBUNTU_CODENAME=`lsb_release -c -s` log "Add GNS3 repository" -cat < /etc/apt/sources.list.d/gns3-ppa.sources +if [ -f "/etc/apt/sources.list" ] +then + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B83AAABFFBD82D21B543C8EA86C22C2EC6A24D7F + cat < /etc/apt/sources.list.d/gns3.list +deb http://ppa.launchpad.net/gns3/ppa/ubuntu $UBUNTU_CODENAME main +deb-src http://ppa.launchpad.net/gns3/ppa/ubuntu $UBUNTU_CODENAME main +EOFLIST + +else + + cat < /etc/apt/sources.list.d/gns3-ppa.sources Types: deb URIs: https://ppa.launchpadcontent.net/gns3/$REPOSITORY/ubuntu/ Suites: $UBUNTU_CODENAME @@ -146,6 +156,8 @@ Signed-By: -----END PGP PUBLIC KEY BLOCK----- EOFLIST +fi + log "Updating system packages and installing curl" apt update apt install -y curl @@ -217,7 +229,7 @@ mkdir -p /etc/gns3 cat < /etc/gns3/gns3_server.conf [Server] host = 0.0.0.0 -port = 3080 +port = 3080 images_path = /opt/gns3/images projects_path = /opt/gns3/projects appliances_path = /opt/gns3/appliances