mirror of https://github.com/zulip/zulip.git
scripts/zulip-puppet-apply: Avoid shelling out for touch.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
09c64f260b
commit
fdc3b62d5f
|
@ -21,7 +21,7 @@ if not os.path.exists("/etc/puppet/hiera.yaml"):
|
|||
codename = parse_lsb_release()['DISTRIB_CODENAME']
|
||||
if codename in ["trusty", "stretch", "xenial"]:
|
||||
# Suppress warnings in old puppet about hiera.yaml not existing.
|
||||
subprocess.check_call(["touch", "/etc/puppet/hiera.yaml"])
|
||||
open("/etc/puppet/hiera.yaml", "a").close()
|
||||
|
||||
puppet_config = """
|
||||
Exec { path => "/usr/sbin:/usr/bin:/sbin:/bin" }
|
||||
|
|
Loading…
Reference in New Issue