1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpipam_ynh.git synced 2024-09-03 19:56:39 +02:00

Merge pull request #20 from YunoHost-Apps/testing

cleaning
This commit is contained in:
eric_G 2023-11-24 18:50:15 +01:00 committed by GitHub
commit 2a3dce5b08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 24 deletions

View file

@ -16,7 +16,8 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
## Vue densemble ## Vue densemble
phpIPAM is an open-source web IP address management application. Its goal is to provide light and simple IP address management application. It is ajax-based using jQuery libraries, it uses php scripts and javascript and some HTML5/CSS3 features, so some modern browser is preferred to be able to display javascript quickly and correctly. 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.
**Version incluse :** 1.19.8~ynh2 **Version incluse :** 1.19.8~ynh2

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" code = "https://github.com/phpipam/phpipam"
[integration] [integration]
yunohost = ">= 11.1.19" yunohost = ">= 11.2"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true
ldap = false ldap = false
sso = false sso = false
disk = "50M" disk = "50M"
ram.build = "50M" ram.build = "50M"
ram.runtime = "50M" ram.runtime = "50M"
@ -55,7 +58,7 @@ ram.runtime = "50M"
api.allowed = "visitors" api.allowed = "visitors"
[resources.apt] [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] [resources.database]
type = "mysql" type = "mysql"

View file

@ -27,7 +27,7 @@ domain="$new_domain"
path="$new_path" path="$new_path"
domain_path="https://$domain$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 # END OF SCRIPT

View file

@ -46,7 +46,7 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1
ynh_add_nginx_config ynh_add_nginx_config
# Create a dedicated PHP-FPM 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) # Use logrotate to manage application logfile(s)
ynh_use_logrotate ynh_use_logrotate

View file

@ -10,15 +10,6 @@
source ../settings/scripts/_common.sh source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers 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 # RESTORE THE APP MAIN DIR
#================================================= #=================================================
@ -29,13 +20,6 @@ ynh_restore_file --origin_path="$install_dir"
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$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 # 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 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" 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 ynh_add_nginx_config
# Create a dedicated PHP-FPM 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) # Use logrotate to manage app-specific logfile(s)
ynh_use_logrotate --non-append ynh_use_logrotate --non-append