+if ($args.Count -lt 1) {
+ $scriptName = [Environment]::GetCommandLineArgs()[1]
+ echo "Usage: $scriptName <destination>"
+ exit 1
+}
+
+
+systemctl --user stop www-rouleunpet.service
+
git pull
cargo build --release
if (!(Test-Path -Path $destination/conf.ron)) {
Copy-Item conf.ron -Destination $destination
}
+
+systemctl --user start www-rouleunpet.service
+