From 2dd32f38f552a419e2b5a100f1ecb0e31e5bb57c Mon Sep 17 00:00:00 2001 From: root Date: Wed, 21 Feb 2018 12:10:43 +0100 Subject: [PATCH] copy /folders not /folder/* fix #156 --- debian/DEBIAN/preinst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/DEBIAN/preinst b/debian/DEBIAN/preinst index ba688c9..c542a3d 100644 --- a/debian/DEBIAN/preinst +++ b/debian/DEBIAN/preinst @@ -33,19 +33,19 @@ fi if [ -d '/usr/lib/MailScanner/MailScanner/CustomFunctions' ]; then mkdir -p ${SAVEDIR}/usr/lib/MailScanner/MailScanner/CustomFunctions - cp -f /usr/lib/MailScanner/MailScanner/CustomFunctions/* ${SAVEDIR}/usr/lib/MailScanner/MailScanner/CustomFunctions + cp -rf /usr/lib/MailScanner/MailScanner/CustomFunctions ${SAVEDIR}/usr/lib/MailScanner/MailScanner/ rm -rf /usr/lib/MailScanner fi if [ -d '/etc/MailScanner/CustomFunctions' ]; then mkdir -p ${SAVEDIR}/etc/MailScanner/CustomFunctions - cp -f /etc/MailScanner/CustomFunctions/* ${SAVEDIR}/etc/MailScanner/CustomFunctions + cp -rf /etc/MailScanner/CustomFunctions ${SAVEDIR}/etc/MailScanner/ rm -rf /etc/MailScanner/CustomFunctions fi if [ -d '/etc/MailScanner/Custom' ]; then mkdir -p ${SAVEDIR}/etc/MailScanner/Custom - cp -f /etc/MailScanner/Custom/* ${SAVEDIR}/etc/MailScanner/Custom + cp -rf /etc/MailScanner/Custom ${SAVEDIR}/etc/MailScanner/ rm -rf /etc/MailScanner/Custom fi