~ubuntu-branches/ubuntu/trusty/am-utils/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/am-utils.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Tim Cutts
  • Date: 2009-09-15 14:47:44 UTC
  • Revision ID: james.westby@ubuntu.com-20090915144744-2lxrr7z2mfyo9b4g
Tags: 6.1.5-14
Fixed two lintian errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
  db_get am-utils/clustername
48
48
  AM_UTILS_CLUSTERNAME="`escape_single_quotes \"$RET\"`"
49
49
 
50
 
  echo '# Am-utils configuration generated automatically by am-utils.config $Revision: 1.6 $' > $TMPFILE
 
50
  echo '# Am-utils configuration generated automatically by am-utils.config $Revision: 1.9 $' > $TMPFILE
51
51
  cat >> "$TMPFILE" <<+++EOD+++
52
52
#
53
53
# Change this file using "dpkg-reconfigure am-utils"
97
97
    if [ -n "`amq -p 2>/dev/null`" ]
98
98
    then
99
99
        wasrunning=yes
100
 
        if [ -x /usr/sbin/invoke-rc.d ]; then
101
 
          /usr/sbin/invoke-rc.d am-utils stop
102
 
        fi
 
100
        invoke-rc.d am-utils stop
103
101
    fi
104
102
fi
105
103
 
107
105
        rm -f $tmpfile
108
106
fi
109
107
 
110
 
if [ "$1" = "install" ]; then
111
 
  update-rc.d am-utils defaults 35 >/dev/null
112
 
fi
113
 
 
114
108
#DEBHELPER#
115
109
 
116
110
### Begin autodetect stuck amds...
245
239
fi
246
240
### End autodetect stuck amds...
247
241
 
248
 
if [ -x /usr/sbin/invoke-rc.d ]; then
249
 
    invoke-rc.d am-utils start || :
250
 
fi
 
242
invoke-rc.d am-utils start || :
251
243
 
252
244
exit 0