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.
This commit is contained in:
jo 2022-09-08 18:49:33 +02:00 committed by Kyle Robbertze
parent 00bb922b79
commit d338e2ec88
1 changed files with 1 additions and 2 deletions

View File

@ -395,8 +395,7 @@ if ! id "$LIBRETIME_USER" &> /dev/null; then
fi fi
info "creating project directories" info "creating project directories"
# TODO: Config dir should not be owned by www-data and should be readonly mkdir -p "$CONFIG_DIR"
mkdir_and_chown "$LIBRETIME_USER" "$CONFIG_DIR"
mkdir_and_chown "$LIBRETIME_USER" "$WORKING_DIR" mkdir_and_chown "$LIBRETIME_USER" "$WORKING_DIR"
mkdir_and_chown "$LIBRETIME_USER" "$LOG_DIR" mkdir_and_chown "$LIBRETIME_USER" "$LOG_DIR"