Changeset b77c92c


Ignore:
Timestamp:
Jun 29, 2010, 7:18:02 PM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, web
Children:
618236b, 611bd26
Parents:
25df647
git-author:
Jessica B. Hamrick <jhamrick@…> (06/29/10 19:18:02)
git-committer:
Jessica B. Hamrick <jhamrick@…> (06/29/10 19:18:02)
Message:

Also revert cupds.conf.gutenbach-orig

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/rm/cups-revert-perms

    r30beeab rb77c92c  
    44conffile="/etc/cups/cupsd.conf"
    55
    6 mv "$conffile" "$conffile.bak"
    7 touch "$conffile"
    8 sed '/# Begin configurations for gutenbach/,/# End configurations for gutenbach/ d' < "$conffile.bak" > "$conffile"
    9 
    10 mv "$conffile" "$conffile.bak"
    11 touch "$conffile"
    12 while read line; do
    13     listen_localhost=$(echo "$line" | grep '^#GUTENBACH' || true)
    14     if [ -n "$listen_localhost" ]; then
    15         echo "$(echo $line | sed s/#GUTENBACH//)" >> "$conffile"
    16     else
    17         root_location=$(echo "$line" | grep '^Allow from All # added by Gutenbach$' || true)
    18         if [ -z "$root_location" ]; then
    19             echo "$line" >> "$conffile"
    20         fi
    21     fi
    22 
    23 done < "$conffile.bak"
    24 
    25 rm "$conffile.bak"
     6if [ -e "$conffile.gutenbach-orig" ]; then
     7    mv "$conffile.gutenbach-orig" "$conffile"
     8fi
Note: See TracChangeset for help on using the changeset viewer.