From d84e02247a2ff6c12d5bc955cb10f82400cf212c Mon Sep 17 00:00:00 2001 From: Tiago Ilieve Date: Wed, 9 Apr 2014 13:34:34 -0300 Subject: [PATCH] Make use of `$PATH` wherever possible --- bootstrapvz/providers/azure/tasks/packages.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrapvz/providers/azure/tasks/packages.py b/bootstrapvz/providers/azure/tasks/packages.py index 97679c5..6581374 100644 --- a/bootstrapvz/providers/azure/tasks/packages.py +++ b/bootstrapvz/providers/azure/tasks/packages.py @@ -32,14 +32,14 @@ class Waagent(Task): waagent_version = info.manifest.system['waagent']['version'] waagent_file = 'WALinuxAgent-' + waagent_version + '.tar.gz' waagent_url = 'https://github.com/Azure/WALinuxAgent/archive/' + waagent_file - log_check_call(['/usr/bin/wget', '-P', info.root, waagent_url]) + log_check_call(['wget', '-P', info.root, waagent_url]) waagent_directory = os.path.join(info.root, 'root') - log_check_call(['/bin/tar', 'xaf', os.path.join(info.root, waagent_file), '-C', waagent_directory]) + log_check_call(['tar', 'xaf', os.path.join(info.root, waagent_file), '-C', waagent_directory]) os.remove(os.path.join(info.root, waagent_file)) waagent_script = '/root/WALinuxAgent-WALinuxAgent-' + waagent_version + '/waagent' log_check_call(['chroot', info.root, 'cp', waagent_script, '/usr/sbin/waagent']) log_check_call(['chroot', info.root, 'chmod', '755', '/usr/sbin/waagent']) - log_check_call(['chroot', info.root, '/usr/sbin/waagent', '-install']) + log_check_call(['chroot', info.root, 'waagent', '-install']) if info.manifest.system['waagent'].get('conf', False): if os.path.isfile(info.manifest.system['waagent']['conf']): log_check_call(['cp', info.manifest.system['waagent']['conf'],