diff options
Diffstat (limited to 'debian/samba-common.postinst')
-rw-r--r-- | debian/samba-common.postinst | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/debian/samba-common.postinst b/debian/samba-common.postinst index f3a5adbefd..4a9361de11 100644 --- a/debian/samba-common.postinst +++ b/debian/samba-common.postinst @@ -98,9 +98,15 @@ if [ -e "$CONFIG" ]; then fi ucf --three-way --debconf-ok "$NEWFILE" "$CONFIG" -ucfr samba-common "$CONFIG" -chmod a+r "$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 # ------------------------- Debconf questions end --------------------- |