summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2015-07-02 15:14:26 -0600
committerusd-importer <ubuntu-server@lists.ubuntu.com>2015-07-03 16:03:20 +0000
commite329a411ba4b518e899251b0b28b6f00f066ab16 (patch)
tree8f824487afd717fca96bbec3fd1f4c63320ba916 /setup.py
parent873472a8013d1d77298c347507c51be1ee1b2375 (diff)
parent4d3f2d83da5663fd03d7ace3c4c5054bdac13151 (diff)
downloadvyos-walinuxagent-e329a411ba4b518e899251b0b28b6f00f066ab16.tar.gz
vyos-walinuxagent-e329a411ba4b518e899251b0b28b6f00f066ab16.zip
Import patches-applied version 2.0.13-0ubuntu1 to applied/ubuntu/wily-proposed
Imported using git-ubuntu import. Changelog parent: 873472a8013d1d77298c347507c51be1ee1b2375 Unapplied parent: 4d3f2d83da5663fd03d7ace3c4c5054bdac13151 New changelog entries: * New upstream release (LP: #1449369). * Rebased patches for 2.0.12 onto 2.0.13.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py35
1 files changed, 24 insertions, 11 deletions
diff --git a/setup.py b/setup.py
index 5af4797..bd4cd9e 100755
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,6 @@ def getDistro():
distro = 'redhat'
return distro
-
class InstallData(install):
user_options = install.user_options + [
@@ -133,19 +132,33 @@ class InstallData(install):
# Configuration file
if not os.path.exists(tgtDir + 'etc'):
- try:
- self.mkpath(tgtDir + 'etc', 0755)
- except:
- msg = 'Could not create config dir '
- msg += tgtDir
- msg += 'etc'
- print msg
- sys.exit(1)
+ try:
+ self.mkpath(tgtDir + 'etc', 0755)
+ except:
+ msg = 'Could not create config dir '
+ msg += tgtDir
+ msg += 'etc'
+ print msg
+ sys.exit(1)
try:
self.copy_file('config/waagent.conf', tgtDir + 'etc/waagent.conf')
except:
- print 'Could not install configuration file %etc' %tgtDir
+ print 'Could not install configuration file %setc' %tgtDir
+ sys.exit(1)
+
+ if not os.path.exists(tgtDir + 'etc/udev/rules.d'):
+ try:
+ self.mkpath(tgtDir + 'etc/udev/rules.d', 0755)
+ except Exception as e:
+ print e
+
+ try:
+ self.copy_file('config/99-azure-product-uuid.rules', tgtDir + 'etc/udev/rules.d/99-azure-product-uuid.rules')
+ except Exception as e:
+ print e
+ print 'Could not install product uuid rules file %setc' %tgtDir
sys.exit(1)
+
if not os.path.exists(tgtDir + 'etc/logrotate.d'):
try:
self.mkpath(tgtDir + 'etc/logrotate.d', 0755)
@@ -161,7 +174,7 @@ class InstallData(install):
msg += tgtDir + 'etc/logrotate.d'
print msg
sys.exit(1)
-
+
# Daemon
if not os.path.exists(tgtDir + prefix + 'sbin'):
try: