diff --git a/scripts/install b/scripts/install index 070b177..8a7dba2 100755 --- a/scripts/install +++ b/scripts/install @@ -40,6 +40,7 @@ ynh_mysql_execute_as_root --database="$db_name" --sql="ALTER DATABASE $db_name C ynh_script_progression --message="Building with NodeJS..." --weight=20 pushd "$install_dir" + ynh_use_nodejs ynh_exec_warn_less env $ynh_node_load_PATH yarn install ynh_exec_warn_less env $ynh_node_load_PATH yarn build popd diff --git a/scripts/restore b/scripts/restore index 8dbe94e..9b7a080 100755 --- a/scripts/restore +++ b/scripts/restore @@ -24,8 +24,6 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" -chmod 750 "$install_dir" -chmod -R o-rwx "$install_dir" chown -R "$app:www-data" "$install_dir" #================================================= @@ -33,7 +31,6 @@ chown -R "$app:www-data" "$install_dir" #================================================= ynh_script_progression --message="Restoring the MySQL database..." --weight=1 -# echo "ALTER DATABASE $db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci" ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < ./db.sql #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index aeda32f..478c2d6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,6 +42,7 @@ chown -R "$app:www-data" "$install_dir" ynh_script_progression --message="Install $app..." --weight=20 pushd "$install_dir" + ynh_use_nodejs ynh_exec_warn_less env $ynh_node_load_PATH yarn install ynh_exec_warn_less env $ynh_node_load_PATH yarn build popd