Browse Source

Run with the correct executable name visible to PHP

arch2
J. King 4 months ago
parent
commit
f853851568
  1. 4
      dist/arch/arsse
  2. 1
      dist/tmpfiles.conf

4
dist/arch/arsse

@ -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

@ -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
Loading…
Cancel
Save