mirror of
				https://github.com/YunoHost-Apps/send_ynh.git
				synced 2025-11-03 23:35:35 +01:00 
			
		
		
		
	cleaning
This commit is contained in:
		@@ -16,7 +16,7 @@ source /usr/share/yunohost/helpers
 | 
				
			|||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
ynh_script_progression --message="Stopping a systemd service..." --weight=1
 | 
					ynh_script_progression --message="Stopping a systemd service..." --weight=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ynh_systemd_action --service_name="$app" --action="stop"
 | 
					ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# MODIFY URL IN NGINX CONF
 | 
					# MODIFY URL IN NGINX CONF
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,10 +10,9 @@ source _common.sh
 | 
				
			|||||||
source /usr/share/yunohost/helpers
 | 
					source /usr/share/yunohost/helpers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# STANDARD REMOVE
 | 
					# REMOVE SYSTEM CONFIGURATIONS
 | 
				
			||||||
#=================================================
 | 
					 | 
				
			||||||
# REMOVE SERVICE INTEGRATION IN YUNOHOST
 | 
					 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
 | 
					ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
 | 
					# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
 | 
				
			||||||
if ynh_exec_warn_less yunohost service status "$app" >/dev/null
 | 
					if ynh_exec_warn_less yunohost service status "$app" >/dev/null
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -72,17 +72,13 @@ chown "$app:" "$install_dir/server/config.js"
 | 
				
			|||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# BUILD APP
 | 
					# BUILD APP
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
 | 
					ynh_script_progression --message="Building app... (this will take some time and resources!)" --weight=16
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
 | 
					pushd "$install_dir"
 | 
				
			||||||
then
 | 
						ynh_use_nodejs
 | 
				
			||||||
	ynh_script_progression --message="Building app... (this will take some time and resources!)" --weight=16
 | 
						ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" "$ynh_npm" install
 | 
				
			||||||
 | 
						ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" "$ynh_npm" run build
 | 
				
			||||||
	pushd "$install_dir"
 | 
					popd
 | 
				
			||||||
		ynh_use_nodejs
 | 
					 | 
				
			||||||
		ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" "$ynh_npm" install
 | 
					 | 
				
			||||||
		ynh_exec_warn_less ynh_exec_as "$app" env "$ynh_node_load_PATH" "$ynh_npm" run build
 | 
					 | 
				
			||||||
	popd
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# START SYSTEMD SERVICE
 | 
					# START SYSTEMD SERVICE
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user