Skip to content

Commit

Permalink
Update sitesetup.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanbossenger authored Dec 30, 2022
1 parent f4d4918 commit 1a30199
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions windows/scripts/os/sitesetup.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
$siteName = $args[0]
$phpVersion = $args[1]
$vmName = wp-local-env
$homeUser = wp-local-env
$vmIp = 192.168.64.2
$siteName=$args[0]
$phpVersion=$args[1]
$vmName="wp-local-env"
$vmIp=192.168.64.2

$sslCertsDirectory = "C:\Users\$homeUser\wp-local-env\ssl-certs\"
$sitesDirectory = "C:\Users\$homeUser\wp-local-env\sites\"
$sslCertsDirectory = "$HOME\wp-local-env\ssl-certs\"
$sitesDirectory = "$HOME\wp-local-env\sites\"

Write-Host "Creating certs..."
Set-Location $sslCertsDirectory
Expand All @@ -25,4 +24,4 @@ if ($phpVersion) {
multipass exec $vmName sudo sitesetup $siteName
}

Write-Host "Done!"
Write-Host "Done!"

0 comments on commit 1a30199

Please sign in to comment.