Mercurial > code > home > repos > infra
diff system.py @ 60:a949704defd0
new pyinfra
author | drewp@bigasterisk.com |
---|---|
date | Sun, 01 May 2022 23:31:20 -0700 |
parents | 16098abf8f0f |
children | 659e4b228909 |
line wrap: on
line diff
--- a/system.py Sun May 01 23:30:09 2022 -0700 +++ b/system.py Sun May 01 23:31:20 2022 -0700 @@ -15,12 +15,12 @@ # files.link(path='/etc/localtime', target=f'/usr/share/zoneinfo/{TZ}') -files.replace(path='/etc/timezone', match='.*', replace=TZ) +files.replace(path='/etc/timezone', text='.*', replace=TZ) apt.packages(update=True, cache_time=86400, packages=['tzdata'], force=True, - env={ + _env={ 'TZ': TZ, 'LANG': 'en_US.UTF-8', 'DEBIAN_FRONTEND': 'noninteractive'