diff --git a/README.md b/README.md index 4d09f36..3f2fd8e 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Use Tiktok with an alternative frontend, inspired by Nitter. - RSS Feed for user, trending and tag (just add /rss to the url) -**Shipped version:** 2.4.2.0~ynh1 +**Shipped version:** 2.4.2.1~ynh1 **Demo:** https://proxitok.herokuapp.com/ diff --git a/README_fr.md b/README_fr.md index 9826fcc..ff74a18 100644 --- a/README_fr.md +++ b/README_fr.md @@ -28,7 +28,7 @@ Use Tiktok with an alternative frontend, inspired by Nitter. - RSS Feed for user, trending and tag (just add /rss to the url) -**Version incluse :** 2.4.2.0~ynh1 +**Version incluse :** 2.4.2.1~ynh1 **Démo :** https://proxitok.herokuapp.com/ diff --git a/conf/app.src b/conf/app.src index 2fe8373..c6ef130 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/pablouser1/ProxiTok/archive/refs/tags/v2.4.2.0.tar.gz -SOURCE_SUM=5edcf8525c94a4a61fd1e3a3793de284d814e56dd6592bee205aced665a63c4f +SOURCE_URL=https://github.com/pablouser1/ProxiTok/archive/refs/tags/v2.4.2.1.tar.gz +SOURCE_SUM=6dd9099fc29878f425599b8b880b77b53fa803e539fa4ae5479d7c0f28dc4b56 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index 625ac89..f8d6624 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Alternative frontend for TikTok", "fr": "Frontend alternatif à TikTok" }, - "version": "2.4.2.0~ynh1", + "version": "2.4.2.1~ynh1", "url": "https://proxitok.herokuapp.com", "upstream": { "license": "AGPL-3.0-only", @@ -16,7 +16,7 @@ }, "license": "AGPL-3.0-only", "maintainer": { - "name": "", + "name": "eric_G", "email": "" }, "requirements": { diff --git a/scripts/_common.sh b/scripts/_common.sh index 4eb1b6e..09281fd 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,7 +7,7 @@ YNH_PHP_VERSION="8.0" # Composer version -YNH_COMPOSER_VERSION="2.3.10" +YNH_COMPOSER_VERSION="2.4.2" # dependencies used by the app pkg_dependencies="php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-redis php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-curl" diff --git a/scripts/install b/scripts/install index d9f48fd..5010801 100755 --- a/scripts/install +++ b/scripts/install @@ -77,14 +77,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Configuring NGINX web server..." --weight=1 - -# Create a dedicated NGINX config -ynh_add_nginx_config - #================================================= # PHP-FPM CONFIGURATION #================================================= @@ -93,6 +85,14 @@ ynh_script_progression --message="Configuring PHP-FPM..." --weight=1 # Create a dedicated PHP-FPM config ynh_add_fpm_config +#================================================= +# NGINX CONFIGURATION +#================================================= +ynh_script_progression --message="Configuring NGINX web server..." --weight=1 + +# Create a dedicated NGINX config +ynh_add_nginx_config + #================================================= # ADD A CONFIGURATION #================================================= diff --git a/scripts/restore b/scripts/restore index e462a8c..86cc834 100755 --- a/scripts/restore +++ b/scripts/restore @@ -43,13 +43,6 @@ test ! -d $final_path \ #================================================= # STANDARD RESTORATION STEPS -#================================================= -# RESTORE THE NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1 - -ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" - #================================================= # RECREATE THE DEDICATED USER #================================================= @@ -69,6 +62,14 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +#================================================= +# REINSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Reinstalling dependencies..." --weight=5 + +# Define and install dependencies +ynh_install_app_dependencies $pkg_dependencies + #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= @@ -77,14 +78,11 @@ ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weig ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" #================================================= -# SPECIFIC RESTORATION +# RESTORE THE NGINX CONFIGURATION #================================================= -# REINSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Reinstalling dependencies..." --weight=5 +ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1 -# Define and install dependencies -ynh_install_app_dependencies $pkg_dependencies +ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index a01144d..fe8bd41 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -64,14 +64,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -#================================================= -# NGINX CONFIGURATION -#================================================= -ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 - -# Create a dedicated NGINX config -ynh_add_nginx_config - #================================================= # UPGRADE DEPENDENCIES #================================================= @@ -87,6 +79,14 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 # Create a dedicated PHP-FPM config ynh_add_fpm_config +#================================================= +# NGINX CONFIGURATION +#================================================= +ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 + +# Create a dedicated NGINX config +ynh_add_nginx_config + #================================================= # ADD A CONFIGURATION #=================================================