copy /folders not /folder/* fix #156

This commit is contained in:
root 2018-02-21 12:10:43 +01:00
parent c0dc8d8025
commit 2dd32f38f5

View file

@ -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