copy_ssh "ice/" $destination
cargo build --target $target --release
- invoke_ssh [systemctl --user stop mumble_web]
+ invoke_ssh [sudo systemctl stop mumble_web]
copy_ssh ./target/($target)/release/mumble_web $destination
invoke_ssh [rm -rf $"($destination)/static"]
copy_ssh ./static/ $destination
- invoke_ssh [chmod u+x $"($destination)/mumble_web"]
- invoke_ssh [systemctl --user start mumble_web]
+ invoke_ssh [chmod gu+x $"($destination)/mumble_web"]
+ invoke_ssh [chgrp -R www-data $"($destination)/mumble_web"]
+ invoke_ssh [sudo systemctl start mumble_web]
print "Deployment finished"
}