2018-12-10 19:08:59 +08:00
# Files used to deploy development version of infection monkey
2018-12-10 20:10:35 +08:00
## Windows
2018-12-10 19:08:59 +08:00
Before running the script you must have git installed.< br >
Cd to scripts directory and use the scripts.< br >
First argument is an empty directory (script can create one) and second is branch you want to clone.
Example usages:< br >
./run_script.bat (Sets up monkey in current directory under .\infection_monkey)< br >
./run_script.bat "C:\test" (Sets up monkey in C:\test)< br >
powershell -ExecutionPolicy ByPass -Command ". .\deploy_windows.ps1; Deploy-Windows -monkey_home C:\test" (Same as above)< br >
./run_script.bat "" "master"(Sets up master branch instead of develop in current dir)
Don't forget to add python to PATH or do so while installing it via this script.< br >
2018-12-10 20:10:35 +08:00
## Linux
2019-07-12 22:25:04 +08:00
You must have root permissions, but don't run the script as root.< br >
2018-12-10 19:08:59 +08:00
Launch deploy_linux.sh from scripts directory.< br >
2019-07-12 22:26:36 +08:00
First argument should be an empty directory (script can create one, default is ./infection_monkey) and second is the branch you want to clone (develop by default).
2019-10-23 19:46:59 +08:00
Choose a directory where you have all the relevant permissions and give it's absolute path, for e.g. /home/your_username
2018-12-10 19:08:59 +08:00
Example usages:< br >
./deploy_linux.sh (deploys under ./infection_monkey)< br >
./deploy_linux.sh "/home/test/monkey" (deploys under /home/test/monkey)< br >
./deploy_linux.sh "" "master" (deploys master branch in script directory)< br >
2018-12-10 20:10:35 +08:00
./deploy_linux.sh "/home/user/new" "master" (if directory "new" is not found creates it and clones master branch into it)< br >