1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/BicBucStriim_ynh.git synced 2024-09-03 18:15:53 +02:00
This commit is contained in:
Éric Gaspar 2024-01-18 21:23:28 +01:00
parent 7da8642b34
commit 3cda72ec96
6 changed files with 6 additions and 14 deletions

View file

@ -1,3 +1,3 @@
## Dépannage
Si vous rencontrez des problèmes, utilisez le test d'installation pour vérifier votre environnement. Invoquez ce test en accédant à `http://domain.ltd/bbs/installcheck.php`. Ce test vérifie les problèmes rencontrés par les utilisateurs dans le passé.
Si vous rencontrez des problèmes, utilisez le test d'installation pour vérifier votre environnement. Invoquez ce test en accédant à `__DOMAIN__/bbs/installcheck.php`. Ce test vérifie les problèmes rencontrés par les utilisateurs dans le passé.

View file

@ -52,4 +52,4 @@ ram.runtime = "50M"
main.url = "/"
[resources.apt]
packages = "php8.2-gd, php8.2-intl, php8.2-xml, php8.2-sqlite3, php8.2-mbstring, php8.2-mcrypt"
packages = "php7.3-gd, php7.3-intl, php7.3-xml, php7.3-sqlite3, php7.3-mbstring, php7.3-mcrypt"

View file

@ -14,23 +14,20 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=7
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#chmod -R ga+w "$install_dir/data"
chmod -R ga+w "$install_dir/data"
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=2
# Create a dedicated NGINX config
ynh_add_nginx_config
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low
ynh_add_fpm_config
#=================================================
# END OF SCRIPT

View file

@ -14,10 +14,8 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
# Remove the dedicated NGINX config
ynh_remove_nginx_config
# Remove the dedicated PHP-FPM config
ynh_remove_fpm_config
#=================================================

View file

@ -23,7 +23,7 @@ chmod -R ga+w "$install_dir/data"
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=50
ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=5
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"

View file

@ -25,7 +25,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=7
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
fi
@ -38,11 +37,9 @@ chmod -R ga+w "$install_dir/data"
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=2
# Create a dedicated NGINX config
ynh_add_nginx_config
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low
ynh_add_fpm_config
#=================================================
# END OF SCRIPT