From 2bce451067008199890b9a3d317eb1872461d470 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 14 Apr 2022 08:36:14 +0200 Subject: [PATCH 01/12] Fix typo in description --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index a7d4e98..7e7a1d3 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "id": "noalyss", "packaging_format": 1, "description": { - "en": "Accounting free software (Beligum and French accounting)", + "en": "Accounting free software (Belgian and French accounting)", "fr": "Logiciel libre de comptabilité (comptabilité Belge et Française)" }, "version": "9.0.2.5~ynh1", From 0e2314d7564568a64913a09c9171d7206e37586e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 14 Apr 2022 08:45:27 +0200 Subject: [PATCH 02/12] Update manifest.json --- manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index a7d4e98..8997053 100644 --- a/manifest.json +++ b/manifest.json @@ -3,10 +3,10 @@ "id": "noalyss", "packaging_format": 1, "description": { - "en": "Accounting free software (Beligum and French accounting)", + "en": "Accounting free software (Belgian and French accounting)", "fr": "Logiciel libre de comptabilité (comptabilité Belge et Française)" }, - "version": "9.0.2.5~ynh1", + "version": "9.0.2.5~ynh2", "url": "http://noalyss.eu", "upstream": { "license": "AGPL-3.0-only", From c8dac309676b0ac81e495e46d8b522be7f429fc1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 14 Apr 2022 08:49:07 +0200 Subject: [PATCH 03/12] php8.0 --- conf/noalyss.conf | 4 ++-- manifest.json | 2 +- scripts/_common.sh | 2 +- scripts/restore | 14 +++++++------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/conf/noalyss.conf b/conf/noalyss.conf index 46fee27..ad0a22a 100644 --- a/conf/noalyss.conf +++ b/conf/noalyss.conf @@ -5,7 +5,7 @@ define("PG_PATH","/usr/bin"); define("PG_RESTORE","/usr/bin/pg_restore "); define("PG_DUMP","/usr/bin/pg_dump "); define ("PSQL","/usr/bin/psql"); -define ("noalyss_user","__DB_NAME__"); +define ("noalyss_user","__DB_USER__"); define ("noalyss_password","__DB_PWD__"); define ("noalyss_psql_port","5432"); define ("noalyss_psql_host","localhost"); @@ -18,7 +18,7 @@ define ("NOALYSS_ADMIN_PASSWORD","__PASSWORD__"); define ("LOCALE",1); define ("domaine",""); define ("MULTI",1); -define ("dbname",""); +define ("dbname","__DB_NAME__"); // Uncomment to DEBUG // define ("DEBUG",TRUE); // Uncomment to log your input diff --git a/manifest.json b/manifest.json index 8997053..6ed9678 100644 --- a/manifest.json +++ b/manifest.json @@ -26,7 +26,7 @@ "multi_instance": false, "services": [ "nginx", - "php7.3-fpm" + "php8.0-fpm" ], "arguments": { "install" : [ diff --git a/scripts/_common.sh b/scripts/_common.sh index 8e86cdb..402bc0a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -3,7 +3,7 @@ # COMMON VARIABLES #================================================= -YNH_PHP_VERSION="7.3" +YNH_PHP_VERSION="8.0" pkg_dependencies="postgresql apt-transport-https libgd-dev php${YNH_PHP_VERSION}-pgsql php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-bcmath php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-gmp php${YNH_PHP_VERSION}-gd php-php-gettext" diff --git a/scripts/restore b/scripts/restore index 58361ab..6c30bd1 100755 --- a/scripts/restore +++ b/scripts/restore @@ -64,13 +64,6 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" -#================================================= -# RESTORE THE PHP-FPM CONFIGURATION -#================================================= -ynh_script_progression --message="Restoring PHP-FPM configuration..." - -ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" - #================================================= # SPECIFIC RESTORATION #================================================= @@ -81,6 +74,13 @@ ynh_script_progression --message="Reinstalling dependencies..." # Define and install dependencies ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies +#================================================= +# RESTORE THE PHP-FPM CONFIGURATION +#================================================= +ynh_script_progression --message="Restoring PHP-FPM configuration..." + +ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" + #================================================= # RESTORE THE POSTGRESQL DATABASE #================================================= From 4452f96ae9641871963aa65ac2092cac25486ee4 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 14 Apr 2022 06:49:17 +0000 Subject: [PATCH 04/12] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eb17763..ec2b476 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Noalyss est un serveur de comptabilité destiné à être hébergé sur Internet afin de contenir la comptabilité d’un nombre illimité de sociétés et d’utilisateurs ne se connaissant pas. Chaque société a ses propres dossiers comptables , ses propres utilisateurs, et ne peut pas interférer avec la comptabilité des autres, à moins d’y être expressément autorisé. -**Shipped version:** 9.0.2.5~ynh1 +**Shipped version:** 9.0.2.5~ynh2 **Demo:** http://demo.noalyss.eu/index.php diff --git a/README_fr.md b/README_fr.md index 2733569..08d055e 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Noalyss est un serveur de comptabilité destiné à être hébergé sur Internet afin de contenir la comptabilité d’un nombre illimité de sociétés et d’utilisateurs ne se connaissant pas. Chaque société a ses propres dossiers comptables , ses propres utilisateurs, et ne peut pas interférer avec la comptabilité des autres, à moins d’y être expressément autorisé. -**Version incluse :** 9.0.2.5~ynh1 +**Version incluse :** 9.0.2.5~ynh2 **Démo :** http://demo.noalyss.eu/index.php From dd1efabc1599146e777e151d5bb8c36539f8a023 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 14 Apr 2022 09:14:03 +0200 Subject: [PATCH 05/12] Update noalyss.conf --- conf/noalyss.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/noalyss.conf b/conf/noalyss.conf index ad0a22a..0eb8de3 100644 --- a/conf/noalyss.conf +++ b/conf/noalyss.conf @@ -16,7 +16,7 @@ define ("NOALYSS_ADMINISTRATOR","__ADMIN__"); // used only for install define ("NOALYSS_ADMIN_PASSWORD","__PASSWORD__"); define ("LOCALE",1); -define ("domaine",""); +define ("domaine","__DOMAIN____PATH__"); define ("MULTI",1); define ("dbname","__DB_NAME__"); // Uncomment to DEBUG From 68ef38d486f5f6a0f163fd86ccead0f5b4ef7ac0 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 14 Apr 2022 11:08:05 +0200 Subject: [PATCH 06/12] Update install --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 351b4f6..f21c554 100755 --- a/scripts/install +++ b/scripts/install @@ -135,12 +135,12 @@ ynh_add_fpm_config --usage=low --footprint=low # ================================================= # MODIFY A CONFIG FILE # ================================================= -ynh_script_progression --message="Modifying $app config file..." +# ynh_script_progression --message="Modifying $app config file..." -ynh_add_config --template="../conf/noalyss.conf" --destination="$final_path/include/config.inc.php" +# ynh_add_config --template="../conf/noalyss.conf" --destination="$final_path/include/config.inc.php" -chmod 400 "$final_path/include/config.inc.php" -chown $app:$app "$final_path/include/config.inc.php" +# chmod 400 "$final_path/include/config.inc.php" +# chown $app:$app "$final_path/include/config.inc.php" #================================================= # SETUP LOGROTATE From a0c05f45a5b30d99f8b1461c1a06f31e15bd9e2b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 14 Apr 2022 11:17:31 +0200 Subject: [PATCH 07/12] Update noalyss.conf --- conf/noalyss.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/noalyss.conf b/conf/noalyss.conf index 0eb8de3..ad972e9 100644 --- a/conf/noalyss.conf +++ b/conf/noalyss.conf @@ -16,11 +16,11 @@ define ("NOALYSS_ADMINISTRATOR","__ADMIN__"); // used only for install define ("NOALYSS_ADMIN_PASSWORD","__PASSWORD__"); define ("LOCALE",1); -define ("domaine","__DOMAIN____PATH__"); +define ("domaine",""); define ("MULTI",1); define ("dbname","__DB_NAME__"); // Uncomment to DEBUG -// define ("DEBUG",TRUE); +define ("DEBUG",TRUE); // Uncomment to log your input // define ("LOGINPUT",TRUE); // Uncomment if you want to activate the possibility to reinitialize From b5c955aaf16e0d0f1ef112308dc0d180a0e6f267 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 14 Apr 2022 11:17:58 +0200 Subject: [PATCH 08/12] Update noalyss.conf --- conf/noalyss.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/noalyss.conf b/conf/noalyss.conf index ad972e9..236a341 100644 --- a/conf/noalyss.conf +++ b/conf/noalyss.conf @@ -18,7 +18,7 @@ define ("NOALYSS_ADMIN_PASSWORD","__PASSWORD__"); define ("LOCALE",1); define ("domaine",""); define ("MULTI",1); -define ("dbname","__DB_NAME__"); +define ("dbname",""); // Uncomment to DEBUG define ("DEBUG",TRUE); // Uncomment to log your input From 3cf93fa06752a6fe130a73151f8824c0b5edbe20 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 14 Apr 2022 11:18:38 +0200 Subject: [PATCH 09/12] Update install --- scripts/install | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/scripts/install b/scripts/install index f21c554..6c7e938 100755 --- a/scripts/install +++ b/scripts/install @@ -107,40 +107,15 @@ ynh_script_progression --message="Configuring PHP-FPM..." --weight=3 # Create a dedicated PHP-FPM config ynh_add_fpm_config --usage=low --footprint=low -# #================================================= -# # SETUP APPLICATION WITH CURL -# #================================================= - -# # Set the app as temporarily public for cURL call -# ynh_permission_update --permission "main" --add "visitors" - -# # Reload NGINX -# ynh_systemd_action --service_name=nginx --action=reload - -# ynh_script_progression --message="Finalizing installation..." --weight=10 - -# # Installation with cURL -# installUrl="/install.php?submit" - -# ynh_local_curl $installUrl "install=2" "lang=fr_FR.utf8" - -# # Remove the `install.php` directory from within the Noalyss installation path. -# # The scripts within this directory should not be accessible on a live Noalyss site -# # or on any installation that is accessible via the Internet. -#ynh_secure_remove "$final_path/html/install.php" - -# # Set the user chosen at installation as administrator -# #ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" <<< "UPDATE ${db_name}_user_table SET username = '$admin' WHERE id = 1;" - # ================================================= # MODIFY A CONFIG FILE # ================================================= -# ynh_script_progression --message="Modifying $app config file..." +ynh_script_progression --message="Modifying $app config file..." -# ynh_add_config --template="../conf/noalyss.conf" --destination="$final_path/include/config.inc.php" +ynh_add_config --template="../conf/noalyss.conf" --destination="$final_path/include/config.inc.php" -# chmod 400 "$final_path/include/config.inc.php" -# chown $app:$app "$final_path/include/config.inc.php" +chmod 650 "$final_path/include/config.inc.php" +chown $app: "$final_path/include/config.inc.php" #================================================= # SETUP LOGROTATE From c06a8be23b86294494f5f89547e9aa566714ae89 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 14 Apr 2022 11:19:06 +0200 Subject: [PATCH 10/12] Update upgrade --- scripts/upgrade | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 1a16c0f..e6bef81 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -115,31 +115,6 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1 # Create a dedicated PHP-FPM config ynh_add_fpm_config --usage=low --footprint=low -#================================================= -# SETUP APPLICATION WITH CURL -#================================================= - -# # Set the app as temporarily public for cURL call -# ynh_permission_update --permission "main" --add "visitors" - -# # Reload NGINX -# ynh_systemd_action --service_name=nginx --action=reload - -# ynh_script_progression --message="Finalizing installation..." --weight=10 - -# # Installation with cURL -# installUrl="/install.php?submit" - -# ynh_local_curl $installUrl "install=2" "lang=fr_FR.utf8" - -# # Remove the `install.php` directory from within the Noalyss installation path. -# # The scripts within this directory should not be accessible on a live Noalyss site -# # or on any installation that is accessible via the Internet. -# ynh_secure_remove "$final_path/html/install.php" - -# # Set the user chosen at installation as administrator -# #ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" <<< "UPDATE ${db_name}_user_table SET username = '$admin' WHERE id = 1;" - #================================================= # RELOAD NGINX #================================================= From 017633817a32a679b58cfeab5727491d3d24c3d3 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 14 Apr 2022 11:54:24 +0200 Subject: [PATCH 11/12] Update install --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 6c7e938..efbc5d4 100755 --- a/scripts/install +++ b/scripts/install @@ -117,6 +117,8 @@ ynh_add_config --template="../conf/noalyss.conf" --destination="$final_path/incl chmod 650 "$final_path/include/config.inc.php" chown $app: "$final_path/include/config.inc.php" +ynh_secure_remove --file="/var/www/noalyss/html/install.php" + #================================================= # SETUP LOGROTATE #================================================= From 5d0938d1050a551a4c64e34543746d8336a62cd6 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 10 May 2022 13:39:37 +0200 Subject: [PATCH 12/12] Update check_process --- check_process | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/check_process b/check_process index 6cbb6d7..ce20d74 100644 --- a/check_process +++ b/check_process @@ -14,6 +14,7 @@ setup_private=1 setup_public=1 upgrade=1 + upgrade=1 from_commit=620065d7dcf5584b22222a7f32505575c460c2c9 backup_restore=1 multi_instance=0 change_url=1 @@ -21,7 +22,7 @@ Email= Notification=none ;;; Upgrade options - ; commit=CommitHash - name=Name and date of the commit. + ; commit=620065d7dcf5584b22222a7f32505575c460c2c9 + name=Merge pull request #31 from YunoHost-Apps/testing manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&