Merge pull request #213 from CodeShakingSheep/fix-typos

Fix typos
This commit is contained in:
tituspijean 2023-09-13 13:37:58 +02:00 committed by GitHub
commit 6bbf60bfe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 10 deletions

View File

@ -17,8 +17,8 @@ ynh_print_info --message="Declaring files to be backed up..."
### N.B. : the following 'ynh_backup' calls are only a *declaration* of what needs
### to be backuped and not an actual copy of any file. The actual backup that
### creates and fill the archive with the files happens in the core after this
### script is called. Hence ynh_backups calls takes basically 0 seconds to run.
### creates and fills the archive with the files happens in the core after this
### script is called. Hence ynh_backups calls take basically 0 seconds to run.
#=================================================
# BACKUP THE APP MAIN DIR

View File

@ -68,7 +68,7 @@ get__prices() {
#=================================================
validate__publishable_key() {
# We can imagine here we test if the key is really a publisheable key
# We can imagine here we test if the key is really a publishable key
(is_secret_key $publishable_key) &&
echo 'This key seems to be a secret key'
}
@ -79,7 +79,7 @@ validate__publishable_key() {
set__prices() {
#---------------------------------------------
# IMPORTANT: setter are trigger only if a change is detected
# IMPORTANT: setters are triggered only if a change is detected
#---------------------------------------------
for price in $(echo $prices | sed "s/,/ /"); do
frequency=$(echo $price | cut -d/ -f1)
@ -91,7 +91,7 @@ set__prices() {
done
#---------------------------------------------
# IMPORTANT: to be able to upgrade properly, you have to saved the value in settings too
# IMPORTANT: to be able to upgrade properly, you have to save the value in settings too
#---------------------------------------------
ynh_app_setting_set $app prices $prices
}

View File

@ -100,7 +100,7 @@ yunohost service add $app --description="A short description of the app" --log="
###
### --needs_exposed_ports "$port" a list of ports that needs to be publicly exposed
### which will then be checked by YunoHost's diagnosis system
### (N.B. DO NOT USE THIS is the port is only internal!!!)
### (N.B. DO NOT USE THIS if the port is only internal!!!)
###
### --test_status "some command" a custom command to check the status of the service
### (only relevant if 'systemctl status' doesn't do a good job)

View File

@ -18,7 +18,7 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
ynh_restore_file --origin_path="$install_dir"
# $install_dir will automatically be initialized with some decent
# permission by default ... however, you may need to recursively reapply
# permissions by default ... however, you may need to recursively reapply
# ownership to all files such as after the ynh_setup_source step
chown -R $app:www-data "$install_dir"

View File

@ -38,7 +38,7 @@ upgrade_type=$(ynh_check_app_version_changed)
#ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
#
# N.B. : the followings setting migrations snippets are provided as *EXAMPLES*
# N.B. : the following setting migration snippets are provided as *EXAMPLES*
# of what you may want to do in some cases (e.g. a setting was not defined on
# some legacy installs and you therefore want to initiaze stuff during upgrade)
#
@ -77,7 +77,7 @@ then
fi
# $install_dir will automatically be initialized with some decent
# permission by default ... however, you may need to recursively reapply
# permissions by default ... however, you may need to recursively reapply
# ownership to all files such as after the ynh_setup_source step
chown -R $app:www-data "$install_dir"
@ -86,7 +86,7 @@ chown -R $app:www-data "$install_dir"
#=================================================
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
# This should be a literal copypasta of what happened in the install's "System configuration" section
# This should be a literal copypaste of what happened in the install's "System configuration" section
ynh_add_fpm_config