mirror of
https://github.com/nikdoof/cups-avahi-airprint.git
synced 2025-12-11 22:52:21 +00:00
Using rsync instead of rm and cp.
This commit is contained in:
@@ -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/*
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user