mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-18 07:23:47 +02:00
Add compatibility for earlier Ubuntu versions
This commit is contained in:
parent
94b5d3e636
commit
c8e5b41f39
@ -110,7 +110,17 @@ UBUNTU_CODENAME=`lsb_release -c -s`
|
|||||||
|
|
||||||
log "Add GNS3 repository"
|
log "Add GNS3 repository"
|
||||||
|
|
||||||
cat <<EOFLIST > /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 <<EOFLIST > /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 <<EOFLIST > /etc/apt/sources.list.d/gns3-ppa.sources
|
||||||
Types: deb
|
Types: deb
|
||||||
URIs: https://ppa.launchpadcontent.net/gns3/$REPOSITORY/ubuntu/
|
URIs: https://ppa.launchpadcontent.net/gns3/$REPOSITORY/ubuntu/
|
||||||
Suites: $UBUNTU_CODENAME
|
Suites: $UBUNTU_CODENAME
|
||||||
@ -146,6 +156,8 @@ Signed-By:
|
|||||||
-----END PGP PUBLIC KEY BLOCK-----
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
EOFLIST
|
EOFLIST
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
log "Updating system packages and installing curl"
|
log "Updating system packages and installing curl"
|
||||||
apt update
|
apt update
|
||||||
apt install -y curl
|
apt install -y curl
|
||||||
@ -217,7 +229,7 @@ mkdir -p /etc/gns3
|
|||||||
cat <<EOFC > /etc/gns3/gns3_server.conf
|
cat <<EOFC > /etc/gns3/gns3_server.conf
|
||||||
[Server]
|
[Server]
|
||||||
host = 0.0.0.0
|
host = 0.0.0.0
|
||||||
port = 3080
|
port = 3080
|
||||||
images_path = /opt/gns3/images
|
images_path = /opt/gns3/images
|
||||||
projects_path = /opt/gns3/projects
|
projects_path = /opt/gns3/projects
|
||||||
appliances_path = /opt/gns3/appliances
|
appliances_path = /opt/gns3/appliances
|
||||||
|
Loading…
Reference in New Issue
Block a user