|  | @@ -156,7 +156,7 @@ function change_website_settings {
 | 
	
		
			
			| 156 | 156 |        sed -i "s|ssl_protocols .*|ssl_protocols $SSL_PROTOCOLS;|g" $WEBSITES_DIRECTORY/$file
 | 
	
		
			
			| 157 | 157 |        sed -i "s|ssl_ciphers .*|ssl_ciphers '$SSL_CIPHERS';|g" $WEBSITES_DIRECTORY/$file
 | 
	
		
			
			| 158 | 158 |    done
 | 
	
		
			
			| 159 |  | -  service nginx restart
 | 
	
		
			
			|  | 159 | +  systemctl restart nginx
 | 
	
		
			
			| 160 | 160 |    echo $'Web security settings changed'
 | 
	
		
			
			| 161 | 161 |  }
 | 
	
		
			
			| 162 | 162 |  
 | 
	
	
		
			
			|  | @@ -172,7 +172,7 @@ function change_imap_settings {
 | 
	
		
			
			| 172 | 172 |    fi
 | 
	
		
			
			| 173 | 173 |    sed -i "s|ssl_cipher_list.*|ssl_cipher_list = '$SSL_CIPHERS'|g" $DOVECOT_CIPHERS
 | 
	
		
			
			| 174 | 174 |    sed -i "s|ssl_protocols.*|ssl_protocols = '$SSL_PROTOCOLS'|g" $DOVECOT_CIPHERS
 | 
	
		
			
			| 175 |  | -  service dovecot restart
 | 
	
		
			
			|  | 175 | +  systemctl restart dovecot
 | 
	
		
			
			| 176 | 176 |    echo $'imap security settings changed'
 | 
	
		
			
			| 177 | 177 |  }
 | 
	
		
			
			| 178 | 178 |  
 | 
	
	
		
			
			|  | @@ -201,7 +201,7 @@ function change_ssh_settings {
 | 
	
		
			
			| 201 | 201 |        sed -i "s|MACs .*|MACs $SSH_MACS|g" $SSH_CONFIG
 | 
	
		
			
			| 202 | 202 |        sed -i "s|KexAlgorithms .*|KexAlgorithms $SSH_KEX|g" $SSH_CONFIG
 | 
	
		
			
			| 203 | 203 |        sed -i "s|PasswordAuthentication .*|PasswordAuthentication $SSH_PASSWORDS|g" $SSH_CONFIG
 | 
	
		
			
			| 204 |  | -      service ssh restart
 | 
	
		
			
			|  | 204 | +      systemctl restart ssh
 | 
	
		
			
			| 205 | 205 |        echo $'ssh server security settings changed'
 | 
	
		
			
			| 206 | 206 |    fi
 | 
	
		
			
			| 207 | 207 |  }
 | 
	
	
		
			
			|  | @@ -218,7 +218,7 @@ function change_xmpp_settings {
 | 
	
		
			
			| 218 | 218 |    fi
 | 
	
		
			
			| 219 | 219 |    sed -i "s|ciphers =.*|ciphers = \"$XMPP_CIPHERS\";|g" $XMPP_CONFIG
 | 
	
		
			
			| 220 | 220 |    sed -i "s|curve =.*|curve = \"$XMPP_ECC_CURVE\";|g" $XMPP_CONFIG
 | 
	
		
			
			| 221 |  | -  service prosody restart
 | 
	
		
			
			|  | 221 | +  systemctl restart prosody
 | 
	
		
			
			| 222 | 222 |    echo $'xmpp security settings changed'
 | 
	
		
			
			| 223 | 223 |  }
 | 
	
		
			
			| 224 | 224 |  
 |