mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
scripts/zulip-puppet-apply: Avoid shelling out for touch.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Tim Abbott
parent
09c64f260b
commit
fdc3b62d5f
@@ -21,7 +21,7 @@ if not os.path.exists("/etc/puppet/hiera.yaml"):
|
|||||||
codename = parse_lsb_release()['DISTRIB_CODENAME']
|
codename = parse_lsb_release()['DISTRIB_CODENAME']
|
||||||
if codename in ["trusty", "stretch", "xenial"]:
|
if codename in ["trusty", "stretch", "xenial"]:
|
||||||
# Suppress warnings in old puppet about hiera.yaml not existing.
|
# 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 = """
|
puppet_config = """
|
||||||
Exec { path => "/usr/sbin:/usr/bin:/sbin:/bin" }
|
Exec { path => "/usr/sbin:/usr/bin:/sbin:/bin" }
|
||||||
|
|||||||
Reference in New Issue
Block a user