mirror of
				https://github.com/YunoHost-Apps/send_ynh.git
				synced 2025-11-04 07:45:30 +01:00 
			
		
		
		
	Update upgrade
This commit is contained in:
		@@ -18,14 +18,12 @@ app=$YNH_APP_INSTANCE_NAME
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
domain=$(ynh_app_setting_get --app=$app --key=domain)
 | 
					domain=$(ynh_app_setting_get --app=$app --key=domain)
 | 
				
			||||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
 | 
					path_url=$(ynh_app_setting_get --app=$app --key=path)
 | 
				
			||||||
is_public=$(ynh_app_setting_get --app=$app --key=is_public)
 | 
					 | 
				
			||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
 | 
					final_path=$(ynh_app_setting_get --app=$app --key=final_path)
 | 
				
			||||||
port=$(ynh_app_setting_get --app=$app --key=port)
 | 
					port=$(ynh_app_setting_get --app=$app --key=port)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# CHECK VERSION
 | 
					# CHECK VERSION
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
ynh_script_progression --message="Checking version..."
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
upgrade_type=$(ynh_check_app_version_changed)
 | 
					upgrade_type=$(ynh_check_app_version_changed)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -122,8 +120,8 @@ then
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	pushd "$final_path"
 | 
						pushd "$final_path"
 | 
				
			||||||
		ynh_use_nodejs
 | 
							ynh_use_nodejs
 | 
				
			||||||
		ynh_exec_warn_less ynh_exec_as $app npm install
 | 
							ynh_exec_warn_less ynh_npm install
 | 
				
			||||||
		ynh_exec_warn_less ynh_exec_as $app npm run build
 | 
							ynh_exec_warn_less ynh_npm run build
 | 
				
			||||||
	popd
 | 
						popd
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user