mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-20 05:17:56 +00:00
Add a scripts for running current dev version on GNS3 VM
This commit is contained in:
parent
8d22f2930e
commit
25c4207661
17
scripts/run_on_gns3vm.sh
Executable file
17
scripts/run_on_gns3vm.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This script will push current dev to a GNS3 VM and
|
||||||
|
# will also start the server in console
|
||||||
|
|
||||||
|
SERVER_ADDRESS=$1
|
||||||
|
|
||||||
|
if [ "$SERVER_ADDRESS" == "" ]
|
||||||
|
then
|
||||||
|
echo "usage: run_on_gns3vm.sh VM_IP"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
ssh gns3@$SERVER_ADDRESS "sudo service gns3 stop"
|
||||||
|
rsync -avz --exclude==".git/*" --exclude=='docs/*' --exclude=='tests/*' . "gns3@$SERVER_ADDRESS:gns3server"
|
||||||
|
|
||||||
|
ssh gns3@$SERVER_ADDRESS "cd gns3server;python3 -m gns3server"
|
Loading…
Reference in New Issue
Block a user