summaryrefslogtreecommitdiffstats
path: root/satellit_installer/static_files/system-updates/usr/local/bin/slxlog
diff options
context:
space:
mode:
Diffstat (limited to 'satellit_installer/static_files/system-updates/usr/local/bin/slxlog')
-rwxr-xr-xsatellit_installer/static_files/system-updates/usr/local/bin/slxlog6
1 files changed, 6 insertions, 0 deletions
diff --git a/satellit_installer/static_files/system-updates/usr/local/bin/slxlog b/satellit_installer/static_files/system-updates/usr/local/bin/slxlog
new file mode 100755
index 0000000..55110ae
--- /dev/null
+++ b/satellit_installer/static_files/system-updates/usr/local/bin/slxlog
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+[ "x$(whoami)" != "xwww-data" ] && exec sudo -n -u www-data "$0" "$@"
+
+php /srv/openslx/www/slx-admin/api.php "$@"
+