Small fixes

This commit is contained in:
Chris Long
2021-03-29 22:21:14 -07:00
parent d587fd25ba
commit 5ae15f682b
3 changed files with 1 additions and 6 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,3 @@
Azure/Ansible/inventory.yml
Vagrant/.vagrant/* Vagrant/.vagrant/*
Vagrant/vagrant*.log Vagrant/vagrant*.log
Packer/packer_cache/* Packer/packer_cache/*

View File

@@ -22,7 +22,7 @@ $cplusplusInstallerUrl = "https://download.microsoft.com/download/2/E/6/2E61CFA4
$cplusplusInstallerPath = "$env:TEMP/vcredist_x64.exe" $cplusplusInstallerPath = "$env:TEMP/vcredist_x64.exe"
$cplusplusLogPath = "$env:TEMP/cplusplus_install_log.txt" $cplusplusLogPath = "$env:TEMP/cplusplus_install_log.txt"
$maxSleepTime = 900 $maxSleepTime = 900
$physicalMemory = get-ciminstance -class "cim_physicalmemory" | % { $_.Capacity } $physicalMemory = get-ciminstance -class "cim_physicalmemory" | % { $_.Capacity } | Select-Object -Last 1
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) [+] Attempting to install Microsoft exchange." Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) [+] Attempting to install Microsoft exchange."
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) [+] Please note, you will have to reboot and re-run this script after the prerequisites have been installed." Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) [+] Please note, you will have to reboot and re-run this script after the prerequisites have been installed."

View File

@@ -98,10 +98,6 @@ sysctl -p /etc/sysctl.conf > /dev/null
cd /opt/DetectionLab/Vagrant || exit 1 cd /opt/DetectionLab/Vagrant || exit 1
sed -i 's/vb.gui = true/vb.gui = false/g' Vagrantfile sed -i 's/vb.gui = true/vb.gui = false/g' Vagrantfile
# Temporary workaround for VB 6.1 until this is fixed in Vagrant
# https://github.com/clong/DetectionLab/issues/374
sed -i 's/--clipboard/--clipboard-mode/g' /opt/DetectionLab/Vagrant/Vagrantfile
# If the boxes are present on external storage, we can modify the Vagrantfile to # If the boxes are present on external storage, we can modify the Vagrantfile to
# point to the boxes on disk so we don't have to download them # point to the boxes on disk so we don't have to download them
if [ $BOXES_PRESENT -eq 1 ]; then if [ $BOXES_PRESENT -eq 1 ]; then