mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
tweaks for debian system vm
This commit is contained in:
parent
0e5469340c
commit
f1b0e4b811
@ -431,7 +431,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
|
||||
private void startAdditionalServices() {
|
||||
Script command = new Script("/bin/bash", s_logger);
|
||||
command.add("-c");
|
||||
command.add("service sshd restart ");
|
||||
command.add("if [ -f /etc/init.d/ssh ]; then service ssh restart; else service sshd restart; fi ");
|
||||
String result = command.execute();
|
||||
if (result != null) {
|
||||
s_logger.warn("Error in starting sshd service err=" + result );
|
||||
|
||||
@ -853,7 +853,7 @@ public class DownloadManagerImpl implements DownloadManager {
|
||||
|
||||
Script command = new Script("/bin/bash", s_logger);
|
||||
command.add("-c");
|
||||
command.add("service httpd stop ");
|
||||
command.add("if [ -d /etc/apache2 ] ; then service apache2 stop; else service httpd stop; fi ");
|
||||
String result = command.execute();
|
||||
if (result != null) {
|
||||
s_logger.warn("Error in stopping httpd service err=" + result );
|
||||
@ -883,7 +883,7 @@ public class DownloadManagerImpl implements DownloadManager {
|
||||
|
||||
command = new Script("/bin/bash", s_logger);
|
||||
command.add("-c");
|
||||
command.add("service httpd start ");
|
||||
command.add("if [ -d /etc/apache2 ] ; then service apache2 start; else service httpd start; fi ");
|
||||
result = command.execute();
|
||||
if (result != null) {
|
||||
s_logger.warn("Error in starting httpd service err=" + result );
|
||||
|
||||
@ -140,7 +140,7 @@ public class DownloadMonitorImpl implements DownloadMonitor {
|
||||
_sslCopy = Boolean.parseBoolean(configs.get("secstorage.encrypt.copy"));
|
||||
|
||||
String cert = configs.get("secstorage.secure.copy.cert");
|
||||
if ("realhostip.com".equalsIgnoreCase(cert)) {
|
||||
if (!"realhostip.com".equalsIgnoreCase(cert)) {
|
||||
s_logger.warn("Only realhostip.com ssl cert is supported, ignoring self-signed and other certs");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user