Misc wording tweaks

This commit is contained in:
Alexandre Aubin
2019-02-13 18:40:20 +01:00
parent 0c1bec02e4
commit a95fca5a43
5 changed files with 56 additions and 57 deletions

View File

@@ -23,7 +23,7 @@ ynh_abort_if_errors
#=================================================
# LOAD SETTINGS
#=================================================
ynh_print_info "Load settings"
ynh_print_info "Loading settings..."
app=$YNH_APP_INSTANCE_NAME
@@ -35,6 +35,7 @@ db_name=$(ynh_app_setting_get $app db_name)
#=================================================
# CHECK IF THE APP CAN BE RESTORED
#=================================================
ynh_print_info "Validating restoration parameters..."
ynh_webpath_available $domain $path_url \
|| ynh_die "Path not available: ${domain}${path_url}"
@@ -52,14 +53,14 @@ ynh_restore_file "/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# RESTORE THE APP MAIN DIR
#=================================================
ynh_print_info "Restore the app main directory"
ynh_print_info "Restore the app main directory..."
ynh_restore_file "$final_path"
#=================================================
# RECREATE THE DEDICATED USER
#=================================================
ynh_print_info "Recreate the dedicated user"
ynh_print_info "Recreate the dedicated systen user..."
# Create the dedicated user (if not existing)
ynh_system_user_create $app
@@ -82,7 +83,7 @@ ynh_restore_file "/etc/php/7.0/fpm/pool.d/$app.conf"
#=================================================
# REINSTALL DEPENDENCIES
#=================================================
ynh_print_info "Reinstall dependencies"
ynh_print_info "Reinstall dependencies..."
# Define and install dependencies
ynh_install_app_dependencies deb1 deb2
@@ -90,7 +91,7 @@ ynh_install_app_dependencies deb1 deb2
#=================================================
# RESTORE THE MYSQL DATABASE
#=================================================
ynh_print_info "Restore the mysql database"
ynh_print_info "Restoring the mysql database..."
db_pwd=$(ynh_app_setting_get $app mysqlpwd)
ynh_mysql_setup_db $db_name $db_name $db_pwd
@@ -99,7 +100,7 @@ ynh_mysql_connect_as $db_name $db_pwd $db_name < ./db.sql
#=================================================
# RESTORE SYSTEMD
#=================================================
ynh_print_info "Restore the systemd configuration"
ynh_print_info "Restoring the systemd configuration..."
ynh_restore_file "/etc/systemd/system/$app.service"
systemctl enable $app.service
@@ -127,7 +128,7 @@ ynh_restore_file "/etc/logrotate.d/$app"
#=================================================
# RELOAD NGINX AND PHP-FPM
#=================================================
ynh_print_info "Reload nginx and php-fpm"
ynh_print_info "Reloading nginx and php-fpm..."
systemctl reload php7.0-fpm
systemctl reload nginx
@@ -136,4 +137,4 @@ systemctl reload nginx
# END OF SCRIPT
#=================================================
ynh_print_info "Restoration completed"
ynh_print_info "Restoration completed for $app"