Do not deploy SSH keys if already deployed.

This commit is contained in:
Kazuhiro MUSASHI 2020-11-12 15:53:49 +09:00 committed by Gitea
parent b499e69b29
commit 2ca7e31821
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