From 417bc73dbd2a1b342b54c1a3879cc65a10066fc9 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 Sep 2018 14:24:39 -0500 Subject: [PATCH] Using rsync instead of rm and cp. --- Dockerfile | 1 + root/root/printer-update.sh | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b83c523..02b973a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ RUN echo "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositorie py-pip \ build-base \ wget \ + rsync \ && pip --no-cache-dir install --upgrade pip \ && pip install pycups \ && rm -rf /var/cache/apk/* diff --git a/root/root/printer-update.sh b/root/root/printer-update.sh index 99f23a8..3735e58 100644 --- a/root/root/printer-update.sh +++ b/root/root/printer-update.sh @@ -3,10 +3,8 @@ while read -r directory events filename; do if [ "$filename" = "printers.conf" ]; then rm -rf /services/AirPrint-*.service - rm -rf /etc/avahi/services/AirPrint-*.service /root/airprint-generate.py -d /services cp /etc/cups/printers.conf /config/printers.conf - cp -f /services/AirPrint-*.service /etc/avahi/services/ & - /usr/sbin/avahi-daemon --reload + rsync -avh /services/ /etc/avahi/services/ fi done