lib/vps_cli/copy.rb in vps_cli-0.1.17 vs lib/vps_cli/copy.rb in vps_cli-0.1.18
- old
+ new
@@ -92,9 +92,11 @@
# This method must be run this way due to it requiring root privileges
unless FileHelper.overwrite?(config.local_sshd_config, config.interactive)
return
end
+ return unless File.identical?(misc_sshd_path, config.local_sshd_config)
+
Rake.sh("sudo cp #{misc_sshd_path} #{config.local_sshd_config}")
end
# Deciphers between files & directories
# Also utilizes the settings from your configuration to properly