~smoser/cloud-init/azure_dhcp

« back to all changes in this revision

Viewing changes to tools/hook-network-manager.tmpl

  • Committer: Brent Baude
  • Date: 2016-08-02 19:05:04 UTC
  • Revision ID: bbaude@redhat.com-20160802190504-30i8uihedcr27odn
Set python binary (2 vs 3) during install phase.  Also, removed
use of entry_point and hook scripts now use -m instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
# Writes DHCP lease information into the cloud-init data directory.
3
3
#
 
4
PYTHON_BINARY=%%PYTHON_BINARY%%
4
5
 
5
6
case "$1:$2" in
6
 
   *:up) exec cloud-init-dhclient-hook ;;
 
7
   *:up) exec $PYTHON_BINARY -m cloudinit.cmd.dhclient_hook
7
8
   *:down) ;;
8
9
esac