Merge "Sets correct permission for /etc/hosts"

This commit is contained in:
Zuul 2018-08-04 15:24:52 +00:00 committed by Gerrit Code Review
commit 8659169c84
1 changed files with 3 additions and 2 deletions

View File

@ -171,8 +171,9 @@ class Engine(object):
r.write_file_to('etc-hosts', hosts_file)
r.write_file_to('etc-hostname', hostname)
r.execute_command('sudo hostname %s' % hostname)
r.execute_command('sudo mv etc-hosts /etc/hosts')
r.execute_command('sudo mv etc-hostname /etc/hostname')
r.execute_command('sudo cp etc-hosts /etc/hosts')
r.execute_command('sudo cp etc-hostname /etc/hostname')
r.execute_command('sudo rm etc-hosts etc-hostname')
r.execute_command('sudo usermod -s /bin/bash $USER')
def _configure_instance_resolve_conf(self, instance):