Skip to content

Commit

Permalink
Fix install of VPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-duponchelle committed May 5, 2015
1 parent 1fd19da commit c18a8d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ then
else
sudo apt-get install -y cmake libelf-dev uuid-dev libpcap0.8-dev
cd /tmp
curl --silent "https://codeload.github.com/GNS3/dynamips/tar.gz/v0.2.14" > dynamips.tgz
curl --location --silent "https://codeload.github.com/GNS3/dynamips/tar.gz/v0.2.14" > dynamips.tgz
tar -xvzf dynamips.tgz
cd dynamips-0.2.14/
mkdir -p build
Expand All @@ -31,7 +31,7 @@ if [ -x /usr/local/bin/vpcs ]
then
echo "VPCS is already installed skip download"
else
curl --silent 'http://kent.dl.sourceforge.net/project/vpcs/0.6/vpcs_0.6_Linux64' > vpcs
curl --location --silent 'http://kent.dl.sourceforge.net/project/vpcs/0.6/vpcs_0.6_Linux64' > vpcs
sudo mv vpcs /usr/local/bin/vpcs
sudo chmod 755 /usr/local/bin/vpcs
fi
Expand Down Expand Up @@ -158,6 +158,7 @@ script
echo \$\$ > /var/run/gns3.pid
if [ ! -f /usr/local/bin/gns3server ]; then
pip3 install gns3-server
/etc/rc.local
fi
exec start-stop-daemon --start -c gns3 --exec /usr/local/bin/gns3server
end script
Expand Down
2 changes: 2 additions & 0 deletions scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ sudo chmod 700 "/usr/local/bin/gns3welcome.py"

sudo pip3 install --upgrade gns3-server

sudo /etc/rc.local

echo "Reboot in 5s"
sleep 5

0 comments on commit c18a8d2

Please sign in to comment.