mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Small changes
This commit is contained in:
		
							parent
							
								
									66bb9336f4
								
							
						
					
					
						commit
						eb5f7c03e9
					
				
					 4 changed files with 14 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -567,7 +567,7 @@ fi
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
# If a service is down, force restart it
 | 
			
		||||
if [ "$(pgrep ss-redir)" = "" ] && [ "$(pgrep ss-local)" = "" ] && [ "$(uci -q get shadowsocks-libev.sss0.disabled)" = "0" ]; then
 | 
			
		||||
if [ "$(pgrep ss-redir)" = "" ] && [ "$(pgrep ss-local)" = "" ] && [ "$(uci -q get shadowsocks-libev.sss0.disabled)" != "1" ]; then
 | 
			
		||||
	_log "Can't find Shadowsocks, restart it..."
 | 
			
		||||
	/etc/init.d/shadowsocks-libev restart
 | 
			
		||||
	sleep 5
 | 
			
		||||
| 
						 | 
				
			
			@ -599,7 +599,7 @@ set_get_config() {
 | 
			
		|||
	[ -n "$server" ] && uci -q set openmptcprouter.${server}.get_config=1
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if [ "$(uci -q get shadowsocks-libev.sss0.disabled)" = "0" ] && [ "$(uci -q get shadowsocks-libev.sss0.key)" = "" ]; then
 | 
			
		||||
if [ "$(uci -q get shadowsocks-libev.sss0.disabled)" != "1" ] && [ "$(uci -q get shadowsocks-libev.sss0.key)" = "" ]; then
 | 
			
		||||
	config_load openmptcprouter
 | 
			
		||||
	config_foreach set_get_config server
 | 
			
		||||
	uci -q commit openmptcprouter
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue