From fc64b0e6a44da41e82223b388f47c4d4c55e639e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 8 Mar 2024 13:26:07 +0100 Subject: [PATCH] delay chown data_dir --- manifest.toml | 2 -- scripts/_common.sh | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index 1ade24f..8e7b71f 100644 --- a/manifest.toml +++ b/manifest.toml @@ -81,8 +81,6 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen [resources.data_dir] dir = "/var/lib/tvheadend" - owner = "hts:rwX" - group = "video:r--" [resources.permissions] main.url = "/" diff --git a/scripts/_common.sh b/scripts/_common.sh index 148d107..c647035 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -30,6 +30,8 @@ _install_tvheadend_package() { ynh_package_install \ "$install_dir/tvheadend.deb" + chown -R "hts:video" "$data_dir" + # The doc says it should be called only once, # but the code says multiple calls are supported. # Also, they're already installed so that should be quasi instantaneous.