mirror of
https://github.com/mtan93/homeassistant-addons.git
synced 2026-03-08 05:21:51 +00:00
* [CUPS] Rewrite based on @zajac-grzegorz work * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
18 lines
297 B
Bash
18 lines
297 B
Bash
#!/usr/bin/with-contenv bashio
|
|
|
|
ulimit -n 1048576
|
|
|
|
until [ -e /var/run/avahi-daemon/socket ]; do
|
|
sleep 1s
|
|
done
|
|
|
|
bashio::log.info "Preparing directories"
|
|
cp -v -R /etc/cups /data
|
|
rm -v -fR /etc/cups
|
|
|
|
ln -v -s /data/cups /etc/cups
|
|
|
|
bashio::log.info "Starting CUPS server as CMD from S6"
|
|
|
|
cupsd -f
|