diff --git a/pbc b/pbc index c50eb61..0e29ff8 100755 --- a/pbc +++ b/pbc @@ -411,8 +411,8 @@ case "$action" in if [ -f "$SCRIPT_DIR/config.example" ]; then if $update || [ ! -f "$ETC_DIR/config.example" ]; then - echo "Copy example config to $ETC_DIR/config.example ..." - ! cp "$SCRIPT_DIR/config.example" "$ETC_DIR/config.example" && echo "Error copying file!" >&2 && exit 4 + echo "Install example config to $ETC_DIR/config.example ..." + ! install -m 0640 "$SCRIPT_DIR/config.example" "$ETC_DIR/config.example" && echo "Error installing file!" >&2 && exit 4 fi fi