~brian-murray/unattended-upgrades/bug-fixes

« back to all changes in this revision

Viewing changes to debian/unattended-upgrades.init

  • Committer: Michael Vogt
  • Date: 2013-04-12 17:27:56 UTC
  • mfrom: (262.1.5 py3)
  • Revision ID: michael.vogt@ubuntu.com-20130412172756-5i2mc7r2eyy2k1t0
merged py3 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
SCRIPTNAME="/etc/init.d/$NAME"
20
20
SHUTDOWN_HELPER="/usr/share/unattended-upgrades/unattended-upgrade-shutdown"
21
21
 
 
22
if [ -x /usr/bin/python3 ]; then
 
23
    PYTHON=python3
 
24
else
 
25
    PYTHON=python
 
26
fi
 
27
 
22
28
# Load the VERBOSE setting and other rcS variables
23
29
. /lib/init/vars.sh
24
30
 
33
39
stop)
34
40
        if [ -e $SHUTDOWN_HELPER ]; then
35
41
                [ "$VERBOSE" != "no" ] && log_action_begin_msg "Checking for running $DESC"
36
 
                python $SHUTDOWN_HELPER
 
42
                $PYTHON $SHUTDOWN_HELPER
37
43
                [ "$VERBOSE" != "no" ] && log_action_end_msg $? "$NAME"
38
44
        fi
39
45
        ;;