~anton-skriptsov/charms/trusty/nedge-swift-gw/trunk

« back to all changes in this revision

Viewing changes to hooks/configurationSteps/nedeployInstall.py

  • Committer: anton.skriptsov at nexenta
  • Date: 2016-02-10 20:04:16 UTC
  • Revision ID: anton.skriptsov@nexenta.com-20160210200416-m6hr4r1y19gteqi7
Nedge 1.1 build 1829

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        exclude = environment['exclude']
18
18
        reserved = environment['reserved']
19
19
 
 
20
        print("change dash to bash.. ")
 
21
        remove_cmd = ['rm', '/bin/sh']
 
22
        bash_cmd = ['ln', '-s', '/bin/bash', '/bin/sh']
 
23
 
 
24
        subprocess.check_output(remove_cmd,
 
25
                                stderr=subprocess.STDOUT,
 
26
                                universal_newlines=True)
 
27
 
 
28
        subprocess.check_output(bash_cmd,
 
29
                                stderr=subprocess.STDOUT,
 
30
                                universal_newlines=True)
 
31
 
20
32
        print('[{}]'.format(self.__class__.__name__))
21
33
        print("\tnode_private_ip : {}".format(node_private_ip))
22
34
        print("\tnode_type      : {}".format(node_type))