Skip to content

Commit

Permalink
Fix addgroup-adduser change
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherDaniel committed May 2, 2024
1 parent 3809a2a commit 7b4a44a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ VOLUME /services
RUN sed -i 's/Listen localhost:631/Port *:631\nServerAlias */' /etc/cups/cupsd.conf && \
sed -i 's/Browsing Off/Browsing On/' /etc/cups/cupsd.conf && \
sed -i 's/<Location \/>/<Location \/>\n Allow All/' /etc/cups/cupsd.conf && \
sed -i 's/<Location \/admin>/<Location \/admin>\n Allow All\n Require user @SYSTEM/' /etc/cups/cupsd.conf && \
sed -i 's/<Location \/admin>/<Location \/admin>\n Allow All/' /etc/cups/cupsd.conf && \
sed -i 's/<Location \/admin\/conf>/<Location \/admin\/conf>\n Allow All/' /etc/cups/cupsd.conf && \
sed -i 's/.*enable\-dbus=.*/enable\-dbus\=no/' /etc/avahi/avahi-daemon.conf && \
echo "DefaultEncryption Never" >> /etc/cups/cupsd.conf
Expand Down
2 changes: 1 addition & 1 deletion root/run_cups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fi

if [ $(grep -ci $CUPSADMIN /etc/shadow) -eq 0 ]; then
adduser --system --group --no-create-home $CUPSADMIN
addgroup --quiet $CUPSADMIN lpadmin
adduser --quiet $CUPSADMIN lpadmin
fi
echo $CUPSADMIN:$CUPSPASSWORD | chpasswd

Expand Down

0 comments on commit 7b4a44a

Please sign in to comment.