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