Skip to content

Commit 8097665

Browse files
Nicolas Rodriguezroot
Nicolas Rodriguez
authored and
root
committed
Add logs
1 parent 937c5d3 commit 8097665

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: lib/redmine_git_hosting/config/mirroring.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def mirroring_keys_installed?(opts = {})
4242
logger.info('Done !')
4343
@mirroring_keys_installed = true
4444
else
45-
logger.error('Failed to install Redmine Gitolite mirroring SSH keys !')
4645
@mirroring_keys_installed = false
4746
end
4847
end
@@ -82,20 +81,23 @@ def gitolite_ssh_public_key_dest_path
8281
def install_private_key
8382
RedmineGitHosting::Commands.sudo_install_file(gitolite_ssh_private_key_content, gitolite_ssh_private_key_dest_path, '600')
8483
rescue
84+
logger.error('Failed to install Redmine Git Hosting mirroring SSH private key !')
8585
false
8686
end
8787

8888

8989
def install_public_key
9090
RedmineGitHosting::Commands.sudo_install_file(gitolite_ssh_public_key_content, gitolite_ssh_public_key_dest_path, '644')
9191
rescue
92+
logger.error('Failed to install Redmine Git Hosting mirroring SSH public key !')
9293
false
9394
end
9495

9596

9697
def install_mirroring_script
9798
RedmineGitHosting::Commands.sudo_install_file(mirroring_script_content, gitolite_mirroring_script, '700')
9899
rescue
100+
logger.error('Failed to install Redmine Git Hosting mirroring script !')
99101
false
100102
end
101103

0 commit comments

Comments
 (0)