From f85385156857deb6be4b9c9e2717332ae57fd56d Mon Sep 17 00:00:00 2001 From: "J. King" Date: Fri, 5 Jan 2024 09:16:57 -0500 Subject: [PATCH] Run with the correct executable name visible to PHP --- dist/arch/arsse | 4 ++-- dist/tmpfiles.conf | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dist/arch/arsse b/dist/arch/arsse index 6f64ca6f..0ccc645a 100644 --- a/dist/arch/arsse +++ b/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 diff --git a/dist/tmpfiles.conf b/dist/tmpfiles.conf index f5e6ed18..8e4c86cc 100644 --- a/dist/tmpfiles.conf +++ b/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 \ No newline at end of file