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

add more indicators to help users know the progression of the scripts and delete --time in ynh_script_progression

This commit is contained in:
Robles Rodolphe 2020-06-05 23:31:23 +02:00
parent 5b1550ab32
commit 74454d32d2
3 changed files with 5 additions and 5 deletions

View file

@ -42,12 +42,14 @@ ynh_print_info --message="Declaring files to be backed up..."
#=================================================
# BACKUP THE APP MAIN DIR
#=================================================
ynh_print_info --message="backing up the files..."
ynh_backup --src_path="$final_path"
#=================================================
# BACKUP THE NGINX CONFIGURATION
#=================================================
ynh_print_info --message="backing up nginx.conf..."
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"

View file

@ -32,6 +32,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================
# CHECK WHICH PARTS SHOULD BE CHANGED
#=================================================
ynh_print_info --message="checking parts should be changed..."
change_domain=0
if [ "$old_domain" != "$new_domain" ]
@ -64,7 +65,6 @@ then
ynh_add_nginx_config
fi
# Change the domain for nginx
if [ $change_domain -eq 1 ]
then
@ -75,8 +75,6 @@ then
ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf"
fi
#=================================================
# RELOAD NGINX
#=================================================
@ -88,5 +86,5 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Change of URL completed for $app" --time --last
ynh_script_progression --message="Change of URL completed for $app"

View file

@ -136,4 +136,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Upgrade of $app completed" --time --last
ynh_script_progression --message="Upgrade of $app completed"