From aafed3ea88a61794e95429708616dd1d3663b356 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 4 Dec 2017 15:26:00 -0600 Subject: Copy full path when backing up /etc/default --- recipes-core/multitech/config/config.init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-core/multitech/config/config.init b/recipes-core/multitech/config/config.init index f1d43b3..bb21888 100644 --- a/recipes-core/multitech/config/config.init +++ b/recipes-core/multitech/config/config.init @@ -139,9 +139,9 @@ case $1 in mkdir old if ! [[ -f $file ]] ; then # Need to preserve old files which is difficult with busybox! - mv $file old - (cd /etc;cp -a $file ${CONFIG_DIR}) - cp -a old/$file . + cp --parents -a $file old || true + (cd /etc;cp --parents -a $file ${CONFIG_DIR}) || true + cp --parents -a old/$file . || true rm -rf old fi rm -rf /etc/$file -- cgit v1.2.3