~ubuntu-branches/ubuntu/vivid/nfs-utils/vivid-proposed

« back to all changes in this revision

Viewing changes to debian/nfs-common.postinst

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2015-04-01 08:22:59 UTC
  • Revision ID: package-import@ubuntu.com-20150401082259-y22f6nbpv6qza10i
Tags: 1:1.2.8-9ubuntu8
* Ship missing .override files
* Ensure we only remove the manual flag from the statd-mounting.override
  file, and potentially, remove it if empty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
        if [ -f ${DEFAULT_CONFFILE}.statd.enable ]; then
73
73
                # enable upstart and systemd jobs. Ignore errors as name mapping isn't one to one
74
74
                # upstart jobs are not disabled under systemd by update-rc.d wihout sysvinit file.
75
 
                rm -f /etc/init/statd-mounting.override /etc/init/statd.override
 
75
                sed -i 's/manual//' /etc/init/statd-mounting.override 2>/dev/null || true
 
76
                if [ `stat -c%s /etc/init/whoopsie.override` -eq 0 ]; then
 
77
                        rm -f /etc/init/statd-mounting.override /etc/init/statd.override
 
78
                fi
76
79
                update-rc.d rpc-statd-notify enable >/dev/null 2>&1 || true
77
80
                update-rc.d rpc-statd enable >/dev/null 2>&1 || true
78
81
                rm -f ${DEFAULT_CONFFILE}.statd.enable