mirror of
https://github.com/deajan/obackup.git
synced 2024-11-12 19:03:42 +01:00
Added ignore ssh knownhosts to upgrade script
This commit is contained in:
parent
b9d2b72ac9
commit
6d410409a3
@ -11,6 +11,7 @@ CHANGELOG
|
||||
README: FreeBSD execution needs mailer (not found), sudo missing, bash needed, sed missing (see if StripQuotes mandatory)
|
||||
|
||||
! XX Mar 2016: obackup v2.0 released
|
||||
- Added an option to ignore knownhosts for ssh connections (use with caution, this can lead to a security issue)
|
||||
- Improved mail fallback
|
||||
- More logging enhancements
|
||||
- Improved upgrade script
|
||||
|
@ -6,7 +6,7 @@ AUTHOR="(L) 2015 by Orsiris \"Ozy\" de Jong"
|
||||
CONTACT="http://www.netpower.fr/obacup - ozy@netpower.fr"
|
||||
OLD_PROGRAM_VERSION="v1.x"
|
||||
NEW_PROGRAM_VERSION="v2.x"
|
||||
PROGRAM_BUILD=2016021102
|
||||
PROGRAM_BUILD=2016032501
|
||||
|
||||
function Usage {
|
||||
echo "$PROGRAM $PROGRAM_BUILD"
|
||||
@ -117,6 +117,10 @@ function RewriteConfigFiles {
|
||||
sed -i '/^SSH_COMPRESSION=*/a RSYNC_REMOTE_PATH=' "$config_file"
|
||||
fi
|
||||
|
||||
if ! grep "^SSH_IGNORE_KNOWN_HOSTS=" "$config_file" > /dev/null; then
|
||||
sed -i '/^SSH_COMPRESSION=*/a SSH_IGNORE_KNOWN_HOSTS=no' "$config_file"
|
||||
fi
|
||||
|
||||
if ! grep "^REMOTE_HOST_PING=" "$config_file" > /dev/null; then
|
||||
sed -i '/^RSYNC_REMOTE_PATH=*/a REMOTE_HOST_PING=yes' "$config_file"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user