Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- GNS3_DIR="$HOME/GNS3/src"
- if [[ ! -d "$GNS3_DIR" ]]; then
- echo "Please wait, setting up GNS3 server"
- mkdir -p "$GNS3_DIR"
- git clone -q --branch=master git://github.com/GNS3/gns3-server.git $GNS3_DIR/gns3-server
- cd $GNS3_DIR/gns3-server
- python3 setup.py -q install > /dev/null 2<&1
- echo "GNS3 server installed successfully"
- elif [[ -d "$GNS3_DIR" ]] && [[ -n "$(ls -A $GNS3_DIR/gns3-server/.git)" ]]; then
- echo "Please wait, updating GNS3 server"
- pip uninstall gns3-server -y -q
- cd $GNS3_DIR/gns3-server
- git pull origin master
- python3 setup.py -q install > /dev/null 2<&1
- echo "GNS3 server updated successfully"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement