install example config with a restrictive mode

This commit is contained in:
2026-08-22 06:12:38 +02:00
parent 3d5757effc
commit 3869ca5a95
+2 -2
View File
@@ -411,8 +411,8 @@ case "$action" in
if [ -f "$SCRIPT_DIR/config.example" ]; then if [ -f "$SCRIPT_DIR/config.example" ]; then
if $update || [ ! -f "$ETC_DIR/config.example" ]; then if $update || [ ! -f "$ETC_DIR/config.example" ]; then
echo "Copy example config to $ETC_DIR/config.example ..." echo "Install example config to $ETC_DIR/config.example ..."
! cp "$SCRIPT_DIR/config.example" "$ETC_DIR/config.example" && echo "Error copying file!" >&2 && exit 4 ! install -m 0640 "$SCRIPT_DIR/config.example" "$ETC_DIR/config.example" && echo "Error installing file!" >&2 && exit 4
fi fi
fi fi