mirror of
				https://github.com/nodemailer/wildduck.git
				synced 2025-11-04 12:07:14 +08:00 
			
		
		
		
	Fixed two issues: 82: need to install npm globally to get around permission problems 83: need to start nginx service before restarting it Better executable requirements (lsof, ps). It may be not installed on minimal systems. Better service detection on given port. It is especially useful, if the installation.sh got interrupted for some reason, and already installed some services. Minor doc update, so a single line is required to paste in terminal. curl vs. wget -> stayed with wget, it is installed by default on ubuntu Colors: added color support for the terminal output:)
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			636 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			636 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#! /bin/bash
 | 
						|
 | 
						|
OURNAME=14_install_start_services.sh
 | 
						|
 | 
						|
echo -e "\n-- Executing ${ORANGE}${OURNAME}${NC} subscript --"
 | 
						|
 | 
						|
# update reload script for future updates
 | 
						|
echo "#!/bin/bash
 | 
						|
$SYSTEMCTL_PATH reload nginx
 | 
						|
$SYSTEMCTL_PATH reload wildduck
 | 
						|
$SYSTEMCTL_PATH restart zone-mta
 | 
						|
$SYSTEMCTL_PATH restart haraka
 | 
						|
$SYSTEMCTL_PATH restart wildduck-webmail" > /usr/local/bin/reload-services.sh
 | 
						|
chmod +x /usr/local/bin/reload-services.sh
 | 
						|
 | 
						|
### start services ####
 | 
						|
 | 
						|
$SYSTEMCTL_PATH start mongod
 | 
						|
$SYSTEMCTL_PATH start wildduck
 | 
						|
$SYSTEMCTL_PATH start haraka
 | 
						|
$SYSTEMCTL_PATH start zone-mta
 | 
						|
$SYSTEMCTL_PATH start wildduck-webmail
 | 
						|
$SYSTEMCTL_PATH reload nginx
 |