X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=functions.sh;h=cc892b7d5b6bb391fd29dc07f5e476361ae11120;hb=b8722272394af7853b62e502d3c909e289872277;hp=19116f8e5ec0bb66f6e509e89e63e58d7e6ae4b2;hpb=b302e2ad8e40fff725d00b3bcbb67324ebc08e7c;p=carnet-tools-cn.git diff --git a/functions.sh b/functions.sh index 19116f8..cc892b7 100644 --- a/functions.sh +++ b/functions.sh @@ -137,12 +137,12 @@ cp_get_netaddr() { CP_ECHO_RETURN="$echo_return" } -# by ico, Tue, 15 Mar 2005 14:04:21 +0100 -cp_backup_conffile() { - cp_check_and_backup "$@" +cp_check_and_backup() { + cp_backup_conffile -r "$@" } -cp_check_and_backup() { +# by ico, Tue, 15 Mar 2005 14:04:21 +0100 +cp_backup_conffile() { [ "$CP_SCRIPT_DEBUG" ] && set -vx local file_bak check did @@ -393,3 +393,4 @@ cp_get_ldap_realm() { [ -z "$echo_return" ] || echo $RET CP_ECHO_RETURN="$echo_return" } +