1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpipam_ynh.git synced 2024-09-03 19:56:39 +02:00
This commit is contained in:
Éric Gaspar 2023-11-24 17:23:01 +01:00
parent 3a825f8f1e
commit b27da6b2ea
6 changed files with 15 additions and 23 deletions

1
doc/DESCRIPTION_fr.md Normal file
View file

@ -0,0 +1 @@
phpIPAM est une application open source de gestion d'adresses IP Web. Son objectif est de fournir une application de gestion d'adresses IP légère et simple. Il est basé sur ajax utilisant les bibliothèques jQuery, il utilise des scripts php et javascript ainsi que certaines fonctionnalités HTML5/CSS3, il est donc préférable d'utiliser certains navigateurs modernes pour pouvoir afficher javascript rapidement et correctement.

View file

@ -17,11 +17,14 @@ admindoc = "https://phpipam.net/documents/"
code = "https://github.com/phpipam/phpipam"
[integration]
yunohost = ">= 11.1.19"
yunohost = ">= 11.2"
architectures = "all"
multi_instance = true
ldap = false
sso = false
disk = "50M"
ram.build = "50M"
ram.runtime = "50M"
@ -55,7 +58,7 @@ ram.runtime = "50M"
api.allowed = "visitors"
[resources.apt]
packages = "mariadb-server php7.4-gmp php7.4-mysql php7.4-ldap php7.4-gd php7.4-opcache php7.4-fileinfo php7.4-intl php7.4-json php7.4-cli php7.4-mbstring php7.4-xml"
packages = "mariadb-server, php8.2-gmp, php8.2-mysql, php8.2-ldap, php8.2-gd, php8.2-opcache, php8.2-fileinfo, php8.2-intl, php8.2-cli, php8.2-mbstring, php8.2-xml"
[resources.database]
type = "mysql"

View file

@ -27,7 +27,7 @@ domain="$new_domain"
path="$new_path"
domain_path="https://$domain$path"
ynh_add_config --template="../conf/config.dist.php" --destination="$install_dir/config.php"
ynh_add_config --template="config.dist.php" --destination="$install_dir/config.php"
#=================================================
# END OF SCRIPT

View file

@ -46,7 +46,7 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1
ynh_add_nginx_config
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low
ynh_add_fpm_config
# Use logrotate to manage application logfile(s)
ynh_use_logrotate

View file

@ -10,15 +10,6 @@
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD RESTORATION STEPS
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# RESTORE THE APP MAIN DIR
#=================================================
@ -29,13 +20,6 @@ ynh_restore_file --origin_path="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=1
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================
# RESTORE THE MYSQL DATABASE
#=================================================
@ -44,9 +28,13 @@ ynh_script_progression --message="Restoring the MySQL database..." --weight=1
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
#=================================================
# RESTORE THE LOGROTATE CONFIGURATION
# RESTORE THE PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the logrotate configuration..." --weight=1
ynh_script_progression --message="Restoring the PHP-FPM configuration..." --weight=1
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_restore_file --origin_path="/etc/logrotate.d/$app"

View file

@ -39,7 +39,7 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
ynh_add_nginx_config
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low
ynh_add_fpm_config
# Use logrotate to manage app-specific logfile(s)
ynh_use_logrotate --non-append