From d338e2ec888242eda6b465b337e3ae04e8b1d818 Mon Sep 17 00:00:00 2001 From: jo Date: Thu, 8 Sep 2022 18:49:33 +0200 Subject: [PATCH] fix(installer): config dir should be read only Now that liquidsoap does not write any file in /etc/libretime, we can make it read only. --- install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install b/install index f6b03e558..f5c93d2c8 100755 --- a/install +++ b/install @@ -395,8 +395,7 @@ if ! id "$LIBRETIME_USER" &> /dev/null; then fi info "creating project directories" -# TODO: Config dir should not be owned by www-data and should be readonly -mkdir_and_chown "$LIBRETIME_USER" "$CONFIG_DIR" +mkdir -p "$CONFIG_DIR" mkdir_and_chown "$LIBRETIME_USER" "$WORKING_DIR" mkdir_and_chown "$LIBRETIME_USER" "$LOG_DIR"