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:
		@@ -9,12 +9,6 @@
 | 
			
		||||
source _common.sh
 | 
			
		||||
source /usr/share/yunohost/helpers
 | 
			
		||||
 | 
			
		||||
#=================================================
 | 
			
		||||
# CHECK VERSION
 | 
			
		||||
#=================================================
 | 
			
		||||
 | 
			
		||||
upgrade_type=$(ynh_check_app_version_changed)
 | 
			
		||||
 | 
			
		||||
#=================================================
 | 
			
		||||
# STANDARD UPGRADE STEPS
 | 
			
		||||
#=================================================
 | 
			
		||||
@@ -34,14 +28,10 @@ ynh_remove_logrotate
 | 
			
		||||
#=================================================
 | 
			
		||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
 | 
			
		||||
#=================================================
 | 
			
		||||
ynh_script_progression --message="Upgrading source files..." --weight=10
 | 
			
		||||
 | 
			
		||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
 | 
			
		||||
then
 | 
			
		||||
	ynh_script_progression --message="Upgrading source files..." --weight=10
 | 
			
		||||
 | 
			
		||||
	# Download, check integrity, uncompress and patch the source from app.src
 | 
			
		||||
	ynh_setup_source --dest_dir="$install_dir" --keep="server/config.js"
 | 
			
		||||
fi
 | 
			
		||||
# Download, check integrity, uncompress and patch the source from app.src
 | 
			
		||||
ynh_setup_source --dest_dir="$install_dir" --keep="server/config.js"
 | 
			
		||||
 | 
			
		||||
chmod -R o-rwx "$install_dir"
 | 
			
		||||
chown -R "$app:www-data" "$install_dir"
 | 
			
		||||
@@ -62,7 +52,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
 | 
			
		||||
# Create a dedicated NGINX config
 | 
			
		||||
ynh_add_nginx_config
 | 
			
		||||
 | 
			
		||||
env_path="$PATH"
 | 
			
		||||
# Create a dedicated systemd config
 | 
			
		||||
ynh_add_systemd_config
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user