From 5073c459453895539a647a84b4ffda2532bbe03b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 12 Oct 2020 23:40:01 +0200 Subject: [PATCH] Small typos --- scripts/backup | 2 +- scripts/change_url | 18 +++++++++--------- scripts/install | 2 +- scripts/remove | 4 ++-- scripts/restore | 6 +++--- scripts/upgrade | 6 +++--- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/scripts/backup b/scripts/backup index 8d906f8..be659ac 100644 --- a/scripts/backup +++ b/scripts/backup @@ -57,4 +57,4 @@ ynh_psql_dump_db --database="$db_name" > db.sql # 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 OnlyOffice. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/change_url b/scripts/change_url index 46eb3cc..753d52b 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -38,7 +38,7 @@ nextclouddomain=$(ynh_app_setting_get --app=$app --key=nextclouddomain) #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= -ynh_script_progression --message="Backing up the app before changing its url (may take a while)..." +ynh_script_progression --message="Backing up OnlyOffice before changing its URL (may take a while)..." # Backup the current version of the app ynh_backup_before_upgrade @@ -73,16 +73,16 @@ fi #================================================= # MODIFY URL IN NGINX CONF #================================================= -ynh_script_progression --message="Updating nginx web server configuration..." +ynh_script_progression --message="Updating NGINX web server configuration..." nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf -# Change the path in the nginx config file +# Change the path in the NGINX config file if [ $change_path -eq 1 ] then - # Make a backup of the original nginx config file if modified + # Make a backup of the original NGINX config file if modified ynh_backup_if_checksum_is_different --file="$nginx_conf_path" - # Set global variables for nginx helper + # Set global variables for NGINX helper domain="$old_domain" path_url="$new_path" @@ -92,11 +92,11 @@ then ynh_replace_string --match_string="__SUB_PATH__" --replace_string="$new_path" --target_file="../conf/nginx.conf" fi - # Create a dedicated nginx config + # Create a dedicated NGINX config ynh_add_nginx_config "nextclouddomain" fi -# Change the domain for nginx +# Change the domain for NGINX if [ $change_domain -eq 1 ] then # Delete file checksum for the old conf file location @@ -111,7 +111,7 @@ fi #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload @@ -119,4 +119,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Change of URL completed for $app" +ynh_script_progression --message="Change of URL completed for OnlyOffice" diff --git a/scripts/install b/scripts/install index c50a78c..bc13c82 100644 --- a/scripts/install +++ b/scripts/install @@ -198,4 +198,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Installation of $app completed" +ynh_script_progression --message="Installation of OnlyOffice completed" diff --git a/scripts/remove b/scripts/remove index de65793..58819b0 100644 --- a/scripts/remove +++ b/scripts/remove @@ -64,7 +64,7 @@ apt-key del "E09C A29F 6E17 8040 EF22 B409 8320 CA65 CB2D E8E5" #================================================= # REMOVE APP MAIN DIR #================================================= -ynh_script_progression --message="Removing app main directory..." +ynh_script_progression --message="Removing OnlyOffice main directory..." # Remove the app directory securely ynh_secure_remove --file="$final_path" @@ -107,4 +107,4 @@ ynh_system_user_delete --username=$app # END OF SCRIPT #================================================= -ynh_script_progression --message="Removal of $app completed" +ynh_script_progression --message="Removal of OnlyOffice completed" diff --git a/scripts/restore b/scripts/restore index db4fff4..fe66d64 100644 --- a/scripts/restore +++ b/scripts/restore @@ -46,7 +46,7 @@ ynh_webpath_available --domain=$domain --path_url=$path_url \ #================================================= # RESTORE THE NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Restoring the nginx configuration..." +ynh_script_progression --message="Restoring the NGINX configuration..." ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" @@ -88,7 +88,7 @@ ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name #================================================= # CONFIGURE ONLYOFFICE #================================================= -ynh_script_progression --message="Configuring Onlyoffice..." +ynh_script_progression --message="Configuring OnlyOffice..." echo onlyoffice-documentserver onlyoffice/ds-port select $port | debconf-set-selections echo onlyoffice-documentserver onlyoffice/db-host string 127.0.0.1 | debconf-set-selections @@ -139,4 +139,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Restoration completed for $app" +ynh_script_progression --message="Restoration completed for OnlyOffice" diff --git a/scripts/upgrade b/scripts/upgrade index 68b7900..ee3c45e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -57,7 +57,7 @@ ynh_secure_remove --file="/etc/apt/sources.list.d/nodesource.list" #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= -ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." +ynh_script_progression --message="Backing up OnlyOffice before upgrading (may take a while)..." # Backup the current version of the app ynh_backup_before_upgrade @@ -81,7 +81,7 @@ path_url=$(ynh_normalize_url_path --path_url=$path_url) #================================================= # NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Configuring nginx web server..." +ynh_script_progression --message="Configuring NGINX web server..." if [ "$path_url" = "/" ]; then ynh_replace_string --match_string="__SUB_PATH__" --replace_string="" --target_file="../conf/nginx.conf" @@ -189,4 +189,4 @@ ynh_systemd_action --service_name=nginx --action=reload # END OF SCRIPT #================================================= -ynh_script_progression --message="Upgrade of $app completed" +ynh_script_progression --message="Upgrade of OnlyOffice completed"