1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlist_ynh.git synced 2024-09-03 18:36:18 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2023-01-30 13:48:42 +01:00
parent 6ff95eb086
commit 0757b7dc7a

View file

@ -92,7 +92,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" ynh_setup_source --dest_dir="$final_path" --keep="config/config.yml"
fi fi
chmod 750 "$final_path" chmod 750 "$final_path"
@ -123,15 +123,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
# Create a dedicated NGINX config # Create a dedicated NGINX config
ynh_add_nginx_config ynh_add_nginx_config
#=================================================
# UPDATE A CONFIG FILE
#=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="some_config_file" --destination="$final_path/some_config_file"
chmod 400 "$final_path/some_config_file"
chown $app:$app "$final_path/some_config_file"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX
#================================================= #=================================================