Commit bee6faf9 authored by Benjamin Rokseth's avatar Benjamin Rokseth
Browse files

Restore cups config files permissions after kill

parent 96245291
......@@ -12,7 +12,13 @@ term_handler() {
kill -SIGTERM "$pid"
wait "$pid"
fi
exit 143; # 128 + 15 -- SIGTERM
echo "Restoring ownership of config files from cups..."
chown -R 1000:1000 /etc/cups
chmod 775 /etc/cups
chmod 775 /etc/cups/ppd
chmod 664 /etc/cups/printers*
chmod 664 /etc/cups/ppd/*
exit 143 # 128 + 15 -- SIGTERM
}
# setup handlers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment