summaryrefslogtreecommitdiff
path: root/sysutils/py-healthchecks/files/hcks.in
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/py-healthchecks/files/hcks.in')
-rw-r--r--sysutils/py-healthchecks/files/hcks.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/py-healthchecks/files/hcks.in b/sysutils/py-healthchecks/files/hcks.in
new file mode 100644
index 000000000000..bad9800f4b1b
--- /dev/null
+++ b/sysutils/py-healthchecks/files/hcks.in
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+args=
+for arg in "$@" ; do
+ if [ "${arg#* }" != "${arg}" ] ; then
+ args="${args} '${arg}'"
+ else
+ args="${args} ${arg}"
+ fi
+done
+
+su -m healthchecks -c "%%HOMEDIR%%/manage.py ${args}"