aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-waitress/waitress.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/py-waitress/waitress.initd')
-rw-r--r--community/py-waitress/waitress.initd4
1 files changed, 4 insertions, 0 deletions
diff --git a/community/py-waitress/waitress.initd b/community/py-waitress/waitress.initd
index 79e3aa5d3d..4f99eb7677 100644
--- a/community/py-waitress/waitress.initd
+++ b/community/py-waitress/waitress.initd
@@ -48,6 +48,10 @@ start_pre() {
fi
if [ -n "$unix_socket_path" ]; then
+ if [ "$(stat -c %u "${unix_socket_path%/*}" 2>/dev/null)" -eq 0 ]; then
+ eerror "Directory \"${unix_socket_path%/*}\" already exists and is owned by root!"
+ return 1
+ fi
checkpath -d -m 0755 -o $user "${unix_socket_path%/*}"
fi