1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 05:02:40 +00:00

Run with the correct executable name visible to PHP

This commit is contained in:
J. King 2024-01-05 09:16:57 -05:00
parent 4131531bff
commit f853851568
2 changed files with 3 additions and 2 deletions

4
dist/arch/arsse vendored
View file

@ -18,9 +18,9 @@ else
fi
if [[ "${UID}" -eq 0 ]]; then
runuser -u "arsse" -- "$php" /usr/share/webapps/arsse/arsse.php "$@"
runuser -u "arsse" -- "$php" /usr/share/webapps/arsse/arsse "$@"
else
check_sudo
sudo -u "arsse" "$php" /usr/share/webapps/arsse/arsse.php "$@"
sudo -u "arsse" "$php" /usr/share/webapps/arsse/arsse "$@"
fi

1
dist/tmpfiles.conf vendored
View file

@ -2,3 +2,4 @@ z /usr/bin/arsse 0755 root arsse - -
z /etc/arsse/config.php 0640 root arsse - -
L /usr/share/arsse/config.php - root arsse - /etc/arsse/config.php
d /var/lib/arsse 0750 arsse arsse - -
L /usr/share/arsse/arsse - root arsse - /usr/share/arsse/arsse.php