1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/proxitok_ynh.git synced 2024-09-03 20:15:53 +02:00

Merge pull request #18 from YunoHost-Apps/testing

Testing
This commit is contained in:
Éric Gaspar 2022-09-26 12:13:07 +02:00 committed by GitHub
commit 5a7efe9cc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 34 additions and 36 deletions

View file

@ -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/

View file

@ -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/

View file

@ -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

View file

@ -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": {

View file

@ -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"

View file

@ -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
#=================================================

View file

@ -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

View file

@ -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
#=================================================