From 6c11c9e485d2b82d59b0edc97bec08a7ea08890b Mon Sep 17 00:00:00 2001 From: "J. King" Date: Sat, 10 Jul 2021 22:47:34 -0400 Subject: [PATCH] Fix Debian bugs --- dist/debian/arsse.dirs | 1 + dist/init.sh | 2 +- lib/Service/Daemon.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 dist/debian/arsse.dirs diff --git a/dist/debian/arsse.dirs b/dist/debian/arsse.dirs new file mode 100644 index 00000000..2e135526 --- /dev/null +++ b/dist/debian/arsse.dirs @@ -0,0 +1 @@ +var/lib/arsse \ No newline at end of file diff --git a/dist/init.sh b/dist/init.sh index 85e28c88..861d1279 100644 --- a/dist/init.sh +++ b/dist/init.sh @@ -16,7 +16,7 @@ PATH=/usr/sbin/:/usr/bin:/sbin:/bin NAME=arsse -DESC=newsfeed synchronization server +DESC="newsfeed synchronization server" PIDFILE=/run/arsse.pid DAEMON=/usr/bin/$NAME diff --git a/lib/Service/Daemon.php b/lib/Service/Daemon.php index 2b429fdd..c77eecfe 100644 --- a/lib/Service/Daemon.php +++ b/lib/Service/Daemon.php @@ -86,7 +86,7 @@ class Daemon { default: fclose($pipe[1]); $result = json_decode(fread($pipe[0], 100), true); - if ($result) { + if (is_array($result)) { [$class, $symbol, $params] = $result; throw new $class($symbol, $params); }