Added restart_cmd variable
This commit is contained in:
		
							parent
							
								
									2b4d9c0a28
								
							
						
					
					
						commit
						d0f4cad4d1
					
				
							
								
								
									
										4
									
								
								nginx.cf
								
								
								
								
							
							
						
						
									
										4
									
								
								nginx.cf
								
								
								
								
							| 
						 | 
				
			
			@ -13,6 +13,7 @@ centos::
 | 
			
		|||
	"cfg_dir" string => "/etc/nginx";
 | 
			
		||||
	"vhost_cfg_dir" string => "$(cfg_dir)/conf.d";
 | 
			
		||||
	"service_name" string => "nginx";
 | 
			
		||||
	"restart_cmd" string => "/usr/bin/systemctl restart $(service_name)";
 | 
			
		||||
debian::
 | 
			
		||||
	"www_dir" string => "/var/www",unless => isvariable( $(this.promiser) ) ;
 | 
			
		||||
	"www_user" string => "www-data";
 | 
			
		||||
| 
						 | 
				
			
			@ -20,6 +21,9 @@ debian::
 | 
			
		|||
	"cfg_dir" string => "/etc/nginx";
 | 
			
		||||
	"vhost_cfg_dir" string => "$(cfg_dir)/conf.d";
 | 
			
		||||
	"service_name" string => "nginx";
 | 
			
		||||
	"restart_cmd" string => "/usr/bin/systemctl restart $(service_name)";
 | 
			
		||||
freebsd::
 | 
			
		||||
	"restart_cmd" string => "/usr/sbin/service $(service_name) restart";
 | 
			
		||||
any::
 | 
			
		||||
	"service_deps" slist => {
 | 
			
		||||
			"nginx_pkgs_installed",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue