Ignore:
Timestamp:
11/21/17 19:04:33 (7 years ago)
Author:
Edwin Eefting <edwin@datux.nl>
Branches:
gcc484, master, perl-5.22
Children:
6fab524, c403a2d
Parents:
995241a
Message:

remove old cups dir first

File:
1 edited

Legend:

Unmodified
Added
Removed
  • npl/fileserver/samba_conf/root/etc/postinst.d/post.samba

    r995241a r1f5b330  
    33#replace by symlink
    44if ! [ -L /etc/cups ]; then
     5        mv /etc/cups /etc/cups.old 2>/dev/null
    56        ln -s /home/system/cups /etc/cups 2>/dev/null
    67fi
    78
    89if ! [ -L /etc/samba ]; then
    9         mv /etc/samba /etc/samba.old
     10        mv /etc/samba /etc/samba.old 2>/dev/null
    1011        ln -s /home/system/samba /etc/samba 2>/dev/null
    1112fi
     
    2021fi
    2122
    22 if ! cat /home/system/samba/smb.conf | grep "store dos attributes" &> /dev/null; then 
     23if ! cat /home/system/samba/smb.conf | grep "store dos attributes" &> /dev/null; then
    2324        sed -i /home/system/samba/smb.conf \
    2425        -e "s/    unix extensions = no/    unix extensions = no\n    store dos attributes = yes/"
Note: See TracChangeset for help on using the changeset viewer.