diff --git a/functions-common b/functions-common index 90f540017c..fe608b4a48 100644 --- a/functions-common +++ b/functions-common @@ -1480,10 +1480,41 @@ function write_uwsgi_user_unit_file { $SYSTEMCTL daemon-reload } +function _common_systemd_pitfalls { + local cmd=$1 + # do some sanity checks on $cmd to see things we don't expect to work + + if [[ "$cmd" =~ "sudo" ]]; then + local msg=<