fix(installer): config should not be world readable

This commit is contained in:
jo 2022-09-08 18:53:52 +02:00 committed by Kyle Robbertze
parent d338e2ec88
commit dead0a3429
1 changed files with 1 additions and 0 deletions

View File

@ -402,6 +402,7 @@ mkdir_and_chown "$LIBRETIME_USER" "$LOG_DIR"
if $is_first_install; then
[[ -f "$CONFIG_TMP_FILEPATH" ]] || cp "$CONFIG_EXAMPLE_FILEPATH" "$CONFIG_TMP_FILEPATH"
chown "$LIBRETIME_USER:$LIBRETIME_USER" "$CONFIG_TMP_FILEPATH"
chmod 640 "$CONFIG_TMP_FILEPATH"
if [[ -n "$LIBRETIME_PUBLIC_URL" ]]; then
set_config "$LIBRETIME_PUBLIC_URL" general public_url