mirror of
				https://framagit.org/YunoHost-Apps/gitea_ynh.git
				synced 2025-10-30 05:15:30 +01:00 
			
		
		
		
	Fix start service managment and listen only on localhost
This commit is contained in:
		| @@ -20,6 +20,7 @@ FORCE_PRIVATE = false | ||||
| [server] | ||||
| DOMAIN       = __DOMAIN__ | ||||
| HTTP_PORT    = __PORT__ | ||||
| HTTP_ADDR    = 127.0.0.1 | ||||
| ROOT_URL     = https://__URL__/ | ||||
| DISABLE_SSH  = false | ||||
| SSH_PORT     = __SSH_PORT__ | ||||
|   | ||||
| @@ -55,7 +55,7 @@ config_gitea | ||||
|  | ||||
| # RELOAD services | ||||
| ynh_script_progression --message="Starting services..." | ||||
| ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -a restart -t 10 | ||||
| ynh_systemd_action -l "Starting new server: tcp:127.0.0.1:" -p "/var/log/$app/gitea.log" -t 10 | ||||
| sleep 1 | ||||
|  | ||||
| # Store the checksum with the 'INTERNAL_TOKEN' value. | ||||
|   | ||||
| @@ -126,7 +126,7 @@ ynh_app_setting_set --app $app --key upstream_version --value $(ynh_app_upstream | ||||
|  | ||||
| # Reload services | ||||
| ynh_script_progression --message="Starting gitea services..." --weight=3 | ||||
| ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -t 10 | ||||
| ynh_systemd_action -l "Starting new server: tcp:127.0.0.1:" -p "/var/log/$app/gitea.log" -t 10 | ||||
| sleep 1 | ||||
|  | ||||
| # Store the checksum with the 'INTERNAL_TOKEN' value. | ||||
|   | ||||
| @@ -78,7 +78,7 @@ yunohost service add "$app" --log /var/log/"$app"/gitea.log | ||||
| # Reload services | ||||
| ynh_script_progression --message="Reloading services..." | ||||
| systemctl reload nginx.service | ||||
| ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -t 10 | ||||
| ynh_systemd_action -l "Starting new server: tcp:127.0.0.1:" -p "/var/log/$app/gitea.log" -t 10 | ||||
| sleep 1 | ||||
|  | ||||
| ynh_script_progression --message="Restoration completed for $app" --last | ||||
|   | ||||
| @@ -202,7 +202,7 @@ set_access_settings | ||||
|  | ||||
| # Reload services | ||||
| ynh_script_progression --message="Starting gitea services..." --weight=3 | ||||
| ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -t 10 | ||||
| ynh_systemd_action -l "Starting new server: tcp:127.0.0.1:" -p "/var/log/$app/gitea.log" -t 10 | ||||
| sleep 1 | ||||
|  | ||||
| # Store the checksum with the 'INTERNAL_TOKEN' value. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Josué Tille
					Josué Tille