mirror of
				https://framagit.org/YunoHost-Apps/gitea_ynh.git
				synced 2025-10-30 05:15:30 +01:00 
			
		
		
		
	Add jwt secret because gitea edit config if not present
This commit is contained in:
		| @@ -81,6 +81,11 @@ if [[ -z "${lfs_jwt_secret:-}" ]]; then | ||||
|     ynh_app_setting_set --app "$app" --key lfs_jwt_secret --value="$lfs_jwt_secret" | ||||
| fi | ||||
|  | ||||
| if [[ -z "${jwt_secret:-}" ]]; then | ||||
|     jwt_secret=$(ynh_exec_as "$app" "$install_dir/gitea" generate secret JWT_SECRET) | ||||
|     ynh_app_setting_set --app "$app" --key jwt_secret --value="$jwt_secret" | ||||
| fi | ||||
|  | ||||
| #================================================= | ||||
| # UPDATE A CONFIG FILE | ||||
| #================================================= | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Josué Tille
					Josué Tille