1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 06:44:57 +00:00
Arsse/dist/arch/arsse.sh

11 lines
287 B
Bash
Raw Normal View History

#! /usr/bin/bash
if [ `id -u` -eq 0 ]; then
setpriv --clear-groups --inh-caps -all --egid=arsse --euid=arsse php /usr/share/webapps/arsse/arsse.php $@
elif [ `id -un` == "arsse" ]; then
php /usr/share/webapps/arsse/arsse.php $@
else
echo "Not authorized." >&2
exit 1
fi