Last active
February 21, 2020 18:49
-
-
Save Peleke/22232677b43d0904992cd489d2aafdf0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set Variables | |
LAB_ENV_DIR="C:/Documnents/LabEnvironments" | |
SCAVENGER_DIR="$LAB_ENV_DIR/linux-scavenger" | |
SCAVENGER_REMOTE="git@gitlab.com:cyberxsecurity/lab-definitions/linux-scavenger.git" | |
# Create Lab Environment Directory | |
mkdir -p $LAB_ENV_DIR && cd $_ | |
# Download Environment | |
git clone $SCAVENGER_REMOTE $SCAVENGER_DIR | |
cd $SCAVENGER_DIR | |
git submodule --init --recurse | |
# Lift Machine and Install Reprovisioner | |
vagrant up | |
powershell reprovision/InstallReprovisioner.ps1 | |
# Fix Line Endings and Ensure VM is Up-to-Date | |
dos2unix **/* | |
powershell reprovision/Reprovision.ps1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment