From be945087224eec0a0cad7592453f94b9124ac79b Mon Sep 17 00:00:00 2001 From: Curtis Hall Date: Tue, 3 Sep 2024 02:27:24 +0100 Subject: [PATCH] Create /var/run/bluecherry in postinstall.sh postinstall.sh fails for Debian systems if /var/run/bluecherry doesn't exist. For unclear reasons it sometimes doesn't exist. See https://forums.bluecherrydvr.com/t/installation-error-on-var-run-bluecherry/891 --- misc/postinstall.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/postinstall.sh b/misc/postinstall.sh index 87c7a1e5..d1781db0 100755 --- a/misc/postinstall.sh +++ b/misc/postinstall.sh @@ -173,6 +173,7 @@ case "$1" in su bluecherry -c "chmod -R 770 /var/lib/bluecherry" if [[ $IN_DEB ]] then + mkdir -p /var/run/bluecherry chown -R bluecherry:bluecherry /var/run/bluecherry su bluecherry -c "chmod -R 750 /var/run/bluecherry" fi