6.16_disable_rsync.sh

This commit is contained in:
thibault.dewailly
2016-04-13 14:12:57 +02:00
parent f408f6846e
commit 8b8547dc7d
69 changed files with 151 additions and 0 deletions

View File

@ -117,6 +117,18 @@ add_line_file_before_pattern() {
sed -i "/$PATTERN/i $LINE" $FILE
FNRET=0
}
replace_in_file() {
local FILE=$1
local SOURCE=$2
local DESTINATION=$3
debug "Replacing $SOURCE to $DESTINATION in $FILE"
debug "sed -i 's/$SOURCE/$DESTINATION/g' $FILE"
sed -i "s/$SOURCE/$DESTINATION/g" $FILE
FNRET=0
}
#
# User manipulation
#