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 \
|
py-pip \
|
||||||
build-base \
|
build-base \
|
||||||
wget \
|
wget \
|
||||||
|
rsync \
|
||||||
&& pip --no-cache-dir install --upgrade pip \
|
&& pip --no-cache-dir install --upgrade pip \
|
||||||
&& pip install pycups \
|
&& pip install pycups \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|||||||
@@ -3,10 +3,8 @@
|
|||||||
while read -r directory events filename; do
|
while read -r directory events filename; do
|
||||||
if [ "$filename" = "printers.conf" ]; then
|
if [ "$filename" = "printers.conf" ]; then
|
||||||
rm -rf /services/AirPrint-*.service
|
rm -rf /services/AirPrint-*.service
|
||||||
rm -rf /etc/avahi/services/AirPrint-*.service
|
|
||||||
/root/airprint-generate.py -d /services
|
/root/airprint-generate.py -d /services
|
||||||
cp /etc/cups/printers.conf /config/printers.conf
|
cp /etc/cups/printers.conf /config/printers.conf
|
||||||
cp -f /services/AirPrint-*.service /etc/avahi/services/ &
|
rsync -avh /services/ /etc/avahi/services/
|
||||||
/usr/sbin/avahi-daemon --reload
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user