From 6766374482667fa4078773d1677ac9b7073f16f2 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Wed, 30 Aug 2017 19:27:00 +0200 Subject: [PATCH] Fix typos and code spacing --- scripts/install | 4 ++-- scripts/restore | 2 +- scripts/upgrade | 22 +++++++++++----------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/scripts/install b/scripts/install index b1b0eb7..9b32084 100644 --- a/scripts/install +++ b/scripts/install @@ -83,7 +83,7 @@ ynh_add_nginx_config # CREATE DEDICATED USER #================================================= -# Create a standart user (not a system user for sftp) +# Create a standard user (not a system user for sftp) ynh_system_user_exists "$user" || \ useradd -d "$final_path" -M --user-group "$user" # Add the password to this user @@ -140,7 +140,7 @@ cp -r ../sources "$final_path" # Set permissions to app files chown -R $user: "$final_path" -# Home directory of the user need to be owned by root to allow +# Home directory of the user needs to be owned by root to allow # SFTP connections chown root: "$final_path" diff --git a/scripts/restore b/scripts/restore index b8c668f..6c5a219 100644 --- a/scripts/restore +++ b/scripts/restore @@ -66,7 +66,7 @@ fi # RECREATE THE DEDICATED USER #================================================= -# Create a standart user (not a system user for sftp) +# Create a standard user (not a system user for sftp) ynh_system_user_exists "$user" || \ useradd -d "$final_path" -M --user-group "$user" # Add the password to this user diff --git a/scripts/upgrade b/scripts/upgrade index 4b44936..c144c4a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,7 +29,7 @@ user=$(ynh_app_setting_get $app user) ([[ -n "$with_mysql" ]] && [[ -n "$password" ]] && [[ -n "$user" ]]) \ || ynh_die "The app changed and can not be automatically upgraded. \ -You will have to manually upgrade it following those instructions: \ +You will have to manually upgrade it following these instructions: \ https://github.com/YunoHost-Apps/my_webapp_ynh#upgrade" #================================================= @@ -76,15 +76,15 @@ is_checksum_different () { local checksum_value=$(ynh_app_setting_get $app $checksum_setting_name) if [ -n "$checksum_value" ] then # Proceed only if a value was stored into the app settings - if ! echo "$checksum_value $file" | sudo md5sum -c --status - then # If the checksum is now different - echo "File $file has been manually modified since the installation or last upgrade. So it will be not replace." >&2 - echo "1" - else - echo "0" - fi + if ! echo "$checksum_value $file" | sudo md5sum -c --status + then # If the checksum is now different + echo "File $file has been manually modified since the installation or last upgrade. So it will not be replaced." >&2 + echo "1" + else + echo "0" + fi else - echo "0" + echo "0" fi } @@ -102,7 +102,7 @@ fi # CREATE DEDICATED USER #================================================= -# Create a standart user (not a system user for sftp) +# Create a standard user (not a system user for sftp) ynh_system_user_exists "$user" || \ useradd -d "$final_path" -M --user-group "$user" # Add the password to this user @@ -146,7 +146,7 @@ systemctl reload ssh # SECURE FILES AND DIRECTORIES #================================================= -# Home directory of the user need to be owned by root to allow +# Home directory of the user needs to be owned by root to allow # SFTP connections chown root: "$final_path"