1 if ($args.Count -lt 1) {
2 $scriptName = [Environment]::GetCommandLineArgs()[1]
3 echo "Usage: $scriptName <destination>"
7 systemctl --user stop www-recipes.service
14 if (!(Test-Path -Path $destination)) {
15 New-Item -ItemType directory -Path $destination
18 Copy-Item target/release/rup -Destination $destination
19 Copy-Item key.secret -Destination $destination
21 Copy-Item static -Destination $destination -Recurse -Force
23 # Do not overwrite the configuration.
24 if (!(Test-Path -Path $destination/conf.ron)) {
25 Copy-Item conf.ron -Destination $destination
28 systemctl --user start www-recipes.service