diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-27 15:11:01 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-27 15:11:01 +0200 |
commit | a60dbe2381124167a7ddb65a91dbe45cdabaaf78 (patch) | |
tree | 0af8dc7793ebdf12556f55d97f97a2dc443ae8a9 | |
parent | 444b66cd7ecd24e448137561e3c440c6a55e7f81 (diff) | |
download | smtpd-conf-a60dbe2381124167a7ddb65a91dbe45cdabaaf78.tar.xz |
Use double spacing between lines
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | fabfile.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2,6 +2,7 @@ from fabric.api import env, local, put, run, sudo, task env.hosts = ['theos.kyriasis.com', 'lucifer.kyriasis.com'] + def checksum_match(local_file, remote_file): md5 = '/usr/bin/md5sum {}' local_sum = local(md5.format(local_file), capture=True).split()[0] @@ -9,6 +10,7 @@ def checksum_match(local_file, remote_file): return local_sum == remote_sum + @task def upload_conf(): local_file = '{}/smtpd.conf'.format(env.host) @@ -19,6 +21,7 @@ def upload_conf(): use_sudo=True) sudo('systemctl restart smtpd.service') + @task def upload_users(): local_file = 'common/users' |