SHA256
install example config with a restrictive mode
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user