mirror of
				https://github.com/YunoHost-Apps/send_ynh.git
				synced 2025-11-03 23:35:35 +01:00 
			
		
		
		
	Fix upgrade
This commit is contained in:
		@@ -20,6 +20,7 @@ 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)
 | 
				
			||||||
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)
 | 
				
			||||||
 | 
					redis_db=$(ynh_app_setting_get --app=$app --key=redis_db)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# CHECK VERSION
 | 
					# CHECK VERSION
 | 
				
			||||||
@@ -132,6 +133,16 @@ then
 | 
				
			|||||||
	popd
 | 
						popd
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#=================================================
 | 
				
			||||||
 | 
					# UPDATE A CONFIG FILE
 | 
				
			||||||
 | 
					#=================================================
 | 
				
			||||||
 | 
					ynh_script_progression --message="Updating a configuration file..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ynh_add_config --template="../conf/config.js" --destination="$final_path/server/config.js"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					chmod 400 "$final_path/server/config.js"
 | 
				
			||||||
 | 
					chown $app: "$final_path/server/config.js"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
# SETUP SYSTEMD
 | 
					# SETUP SYSTEMD
 | 
				
			||||||
#=================================================
 | 
					#=================================================
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user