Ver Fonte

add get_tz for future

adh not support timezone now
rufengsuixing há 5 anos atrás
pai
commit
aefbaf0889
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      root/etc/init.d/AdGuardHome

+ 4 - 0
root/etc/init.d/AdGuardHome

@@ -317,6 +317,10 @@ start_service() {
 		fi
 	fi
 	procd_open_instance
+	get_tz
+	if [ ! -z "$SET_TZ" ]; then 
+		procd_set_param env TZ="$SET_TZ" 
+	fi
 	procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
 	procd_set_param limits core="unlimited"
 	procd_set_param stderr 1