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

Small fixes

This commit is contained in:
ericgaspar 2020-09-29 17:53:42 +02:00
parent 02353ac31a
commit edb0f6ae1b
No known key found for this signature in database
GPG key ID: 574F281483054D44
9 changed files with 43 additions and 43 deletions

View file

@ -25,7 +25,7 @@ Luckysheet is an online spreadsheet that is powerful, simple to configure, and c
## Documentation
* Official documentation: https://mengshukeji.github.io/LuckysheetDocs/
* Official documentation: https://mengshukeji.github.io/LuckysheetDocs/guide/
* YunoHost documentation:
## YunoHost specific features

View file

@ -26,7 +26,7 @@ Luckysheet est une feuille de calcul en ligne, puissante, simple à configurer e
## Documentation
* Documentation officielle : https://mengshukeji.github.io/LuckysheetDocs/
* Documentation officielle : https://mengshukeji.github.io/LuckysheetDocs/guide/
* Documentation YunoHost :
## Caractéristiques spécifiques YunoHost

View file

@ -58,4 +58,4 @@ ynh_backup --src_path="/etc/systemd/system/$app.service"
# END OF SCRIPT
#=================================================
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
ynh_print_info --message="Backup script completed for Luckysheet. (YunoHost will then actually copy those files to the archive)."

View file

@ -33,7 +33,7 @@ port=$(ynh_app_setting_get --app=$app --key=port)
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
ynh_script_progression --message="Backing up $app before changing its URL (may take a while)..." --weight=1
ynh_script_progression --message="Backing up Luckysheet before changing its URL (may take a while)..." --weight=1
# Backup the current version of the app
ynh_backup_before_upgrade
@ -122,4 +122,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Change of URL completed for $app" --last
ynh_script_progression --message="Change of URL completed for Luckysheet" --last

View file

@ -80,9 +80,9 @@ ynh_setup_source --dest_dir=$final_path
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring Nginx web server..." --weight=2
ynh_script_progression --message="Configuring NGINX web server..." --weight=2
# Create a dedicated nginx config
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
@ -98,7 +98,7 @@ ynh_system_user_create --username=$app --home_dir=$final_path
#==============================================
# INSTALL HEDGEDOC
#==============================================
ynh_script_progression --message="Building $app... (this will take some time and resources!)" --weight=240
ynh_script_progression --message="Building Luckysheet... (this will take some time and resources!)" --weight=20
pushd "$final_path" || ynh_die
@ -171,4 +171,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Installation of $app completed" --last
ynh_script_progression --message="Installation of Luckysheet completed" --last

View file

@ -26,10 +26,10 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#=================================================
# 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
then
ynh_script_progression --message="Removing $app service..." --weight=1
ynh_script_progression --message="Removing Luckysheet service..." --weight=1
yunohost service remove $app
fi
@ -51,7 +51,7 @@ ynh_remove_nodejs
#=================================================
# REMOVE APP MAIN DIR
#=================================================
ynh_script_progression --message="Removing app main directory..." --weight=6
ynh_script_progression --message="Removing Luckysheet main directory..." --weight=6
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
@ -78,4 +78,4 @@ ynh_system_user_delete --username=$app
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed" --last
ynh_script_progression --message="Removal of Luckysheet completed" --last

View file

@ -52,7 +52,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# RESTORE THE APP MAIN DIR
#=================================================
ynh_script_progression --message="Restoring the app main directory..." --weight=60
ynh_script_progression --message="Restoring Luckysheet main directory..." --weight=60
ynh_restore_file --origin_path="$final_path"
@ -117,4 +117,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Restoration completed for $app" --last
ynh_script_progression --message="Restoration completed for Luckysheet" --last

View file

@ -32,7 +32,7 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
ynh_script_progression --message="Backing up $app before upgrading (may take a while)..." --weight=120
ynh_script_progression --message="Backing up Luckysheet before upgrading (may take a while)..." --weight=120
# Backup the current version of the app
ynh_backup_before_upgrade
@ -98,7 +98,7 @@ ynh_system_user_create --username=$app
#==============================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Building $app... (this will take some time and resources!)" --weight=160
ynh_script_progression --message="Building Luckysheet... (this will take some time and resources!)" --weight=160
pushd "$final_path" || ynh_die
@ -154,4 +154,4 @@ ynh_systemd_action --service_name=nginx --action=reload
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Upgrade of $app completed" --last
ynh_script_progression --message="Upgrade of Luckysheet completed" --last