Merge pull request 'Do not deploy SSH keys if already deployed.' (#55) from modify-lsyncd-deploy-key into master

Reviewed-on: #55
This commit is contained in:
Kazuhiro MUSASHI 2020-11-12 15:55:27 +09:00
commit 3607dd1829
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ end
source "files/root/.ssh/#{f}" source "files/root/.ssh/#{f}"
password ENV['ITAMAE_PASSWORD'] password ENV['ITAMAE_PASSWORD']
# Do not overwrite:
not_if "test -e /root/.ssh/#{f}"
end end
end end