]> arthur.barton.de Git - backup-script.git/blobdiff - bin/backup-script
Autodetect "localhost" and 127.0.0.1 as being "local"
[backup-script.git] / bin / backup-script
index e57673a0461b112a71d237af030056f3a5ee0f68..89abead0610b6c11cfd63c5effe25cf1d7a649d0 100755 (executable)
@@ -160,6 +160,9 @@ for f in $sys; do
        # Read in system configuration file
        source "$f"
 
+       # Validate configuration
+       [ "$system" = "localhost" -o "$system" = "127.0.0.1" ] && local=1
+
        [ "$system" = "$fname" ] \
                && systxt="\"$system\"" \
                || systxt="\"$fname\" [\"$system\"]"