copy_ssh ./target/($target)/release/mumble_web $destination
invoke_ssh [rm -rf $"($destination)/static"]
copy_ssh ./static/ $destination
+
invoke_ssh [chmod gu+x $"($destination)/mumble_web"]
- invoke_ssh [chgrp -R www-data $"($destination)/mumble_web"]
+
+ # "|| true" to suppress the possible non-zero return.
+ invoke_ssh [chgrp -Rf www-data $"($destination)/* || true"]
+ invoke_ssh [chmod -Rf g+rw $"($destination)/* || true"]
+
+ # Add 'x' right for group (www-data) to all directories.
+ invoke_ssh [find $"($destination) -type d -exec chmod -f g+x {} + || true"]
+
invoke_ssh [sudo systemctl start mumble_web]
print "Deployment finished"
}