diff --git a/README.md b/README.md index 60ccdf8..9694f52 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ It shall NOT be edited by hand. Invoice Ninja is a self-hosted invoicing platform to create & email invoices, track payments and expenses, and time billable tasks & projects for clients. -**Shipped version:** 5.10.12~ynh1 +**Shipped version:** 5.10.18~ynh1 **Demo:** diff --git a/README_es.md b/README_es.md index 14eddf3..7f9a1a3 100644 --- a/README_es.md +++ b/README_es.md @@ -19,7 +19,7 @@ No se debe editar a mano. Invoice Ninja is a self-hosted invoicing platform to create & email invoices, track payments and expenses, and time billable tasks & projects for clients. -**Versión actual:** 5.10.12~ynh1 +**Versión actual:** 5.10.18~ynh1 **Demo:** diff --git a/README_eu.md b/README_eu.md index 9faaaac..6f72143 100644 --- a/README_eu.md +++ b/README_eu.md @@ -19,7 +19,7 @@ EZ editatu eskuz. Invoice Ninja is a self-hosted invoicing platform to create & email invoices, track payments and expenses, and time billable tasks & projects for clients. -**Paketatutako bertsioa:** 5.10.12~ynh1 +**Paketatutako bertsioa:** 5.10.18~ynh1 **Demoa:** diff --git a/README_fr.md b/README_fr.md index 1904686..5589c9f 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main. Invoice Ninja est une plate-forme de facturation auto-hébergée permettant de créer et d'envoyer des factures par courrier électronique, de suivre les paiements et les dépenses, ainsi que de chronométrer les tâches et projets facturables pour les clients. -**Version incluse :** 5.10.12~ynh1 +**Version incluse :** 5.10.18~ynh1 **Démo :** diff --git a/README_gl.md b/README_gl.md index ea7f054..99a6b12 100644 --- a/README_gl.md +++ b/README_gl.md @@ -19,7 +19,7 @@ NON debe editarse manualmente. Invoice Ninja is a self-hosted invoicing platform to create & email invoices, track payments and expenses, and time billable tasks & projects for clients. -**Versión proporcionada:** 5.10.12~ynh1 +**Versión proporcionada:** 5.10.18~ynh1 **Demo:** diff --git a/README_id.md b/README_id.md index dd683b7..db9c0ae 100644 --- a/README_id.md +++ b/README_id.md @@ -19,7 +19,7 @@ Ini TIDAK boleh diedit dengan tangan. Invoice Ninja is a self-hosted invoicing platform to create & email invoices, track payments and expenses, and time billable tasks & projects for clients. -**Versi terkirim:** 5.10.12~ynh1 +**Versi terkirim:** 5.10.18~ynh1 **Demo:** @@ -32,7 +32,7 @@ Invoice Ninja is a self-hosted invoicing platform to create & email invoices, tr - Website aplikasi resmi: - Dokumentasi pengguna resmi: - Dokumentasi admin resmi: -- Repositori kode aplikasi hulu: +- Depot kode aplikasi hulu: - Gudang YunoHost: - Laporkan bug: diff --git a/README_zh_Hans.md b/README_zh_Hans.md index 452a35d..0c42595 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.md @@ -19,7 +19,7 @@ Invoice Ninja is a self-hosted invoicing platform to create & email invoices, track payments and expenses, and time billable tasks & projects for clients. -**分发版本:** 5.10.12~ynh1 +**分发版本:** 5.10.18~ynh1 **演示:** diff --git a/conf/default.env b/conf/default.env index e03cada..1e1fb5b 100644 --- a/conf/default.env +++ b/conf/default.env @@ -51,6 +51,7 @@ NINJA_ENVIRONMENT=selfhost #options - snappdf / phantom / hosted_ninja PDF_GENERATOR=snappdf +SNAPPDF_CHROMIUM_PATH=/usr/bin/chromium PHANTOMJS_KEY='__PHANTOMJS_KEY__' PHANTOMJS_SECRET=__APP_KEY__ diff --git a/manifest.toml b/manifest.toml index 70d35d1..76a3cec 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "InvoiceNinja 5" description.en = "Create and email invoices, track payments, expenses, and time tasks" description.fr = "Créer et envoyer des factures par e-mail, suivre les paiements, les dépenses et les tâches horaires" -version = "5.10.12~ynh1" +version = "5.10.18~ynh1" maintainers = ["Sebastian Gumprich"] @@ -18,7 +18,7 @@ userdoc = "https://invoiceninja.github.io/" code = "https://github.com/invoiceninja/invoiceninja" [integration] -yunohost = ">= 11.2" +yunohost = ">= 11.2.20" architectures = "all" multi_instance = true @@ -58,8 +58,8 @@ ram.runtime = "50M" [resources.sources] [resources.sources.main] - url = "https://github.com/invoiceninja/invoiceninja/releases/download/v5.10.12/invoiceninja.tar" - sha256 = "c6062fd860ae1a016c8453b313a8a3f5a717b0c6245a7493068d58eda7a541d8" + url = "https://github.com/invoiceninja/invoiceninja/releases/download/v5.10.18/invoiceninja.tar" + sha256 = "2904126a058881af5072102b0456414030e733b6d52cab43d8ac9c6afa01d406" format = "tar.gz" in_subdir = false autoupdate.strategy = "latest_github_release" @@ -71,9 +71,13 @@ ram.runtime = "50M" [resources.permissions] main.url = "/" + api.url = "/api" + api.allowed = "visitors" + api.auth_header = false + api.show_tile = false [resources.apt] - packages = "mariadb-server, php8.2-bcmath, php8.2-gmp, php8.2-fileinfo, php8.2-gd, php8.2-mbstring, php8.2-pdo, php8.2-xml, php8.2-curl, php8.2-zip, php8.2-mysql, libnss3-dev, libatk1.0-0, libatk-bridge2.0-0, libxcomposite1, libxrandr2, libasound2, libcups2, libdrm2, libxkbcommon0, libxdamage1, libxfixes3, libgbm1, libpango-1.0-0, libcairo2" + packages = "mariadb-server, php8.3-bcmath, php8.3-gmp, php8.3-fileinfo, php8.3-gd, php8.3-mbstring, php8.3-pdo, php8.3-xml, php8.3-curl, php8.3-zip, php8.3-mysql, libnss3-dev, libatk1.0-0, libatk-bridge2.0-0, libxcomposite1, libxrandr2, libasound2, libcups2, libdrm2, libxkbcommon0, libxdamage1, libxfixes3, libgbm1, libpango-1.0-0, libcairo2, chromium" [resources.database] type = "mysql" diff --git a/scripts/backup b/scripts/backup index dbbf81c..b7f5254 100755 --- a/scripts/backup +++ b/scripts/backup @@ -22,23 +22,13 @@ ynh_print_info --message="Declaring files to be backed up..." ynh_backup --src_path="$install_dir" #================================================= -# BACKUP THE NGINX CONFIGURATION +# SYSTEM CONFIGURATION #================================================= ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" -#================================================= -# BACKUP THE PHP-FPM CONFIGURATION -#================================================= - ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" -#================================================= -# SPECIFIC BACKUP -#================================================= -# BACKUP A CRON FILE -#================================================= - ynh_backup --src_path="/etc/cron.d/$app" #================================================= diff --git a/scripts/install b/scripts/install index 93a679c..2c91c39 100755 --- a/scripts/install +++ b/scripts/install @@ -58,7 +58,7 @@ ynh_script_progression --message="Modifying a config file..." --weight=1 ynh_add_config --template="default.env" --destination="$install_dir/.env" -chmod 400 "$install_dir/.env" +chmod 600 "$install_dir/.env" chown $app:$app "$install_dir/.env" #================================================= @@ -73,12 +73,6 @@ pushd "$install_dir" php$phpversion artisan optimize --no-interaction --verbose php$phpversion artisan view:clear php$phpversion artisan cache:clear - - # install snappdf, since it isn't included by default anymore since - # 5.5.12: https://invoiceninja.github.io/docs/self-host-troubleshooting/#pdf-conversion-issues - php$phpversion vendor/bin/snappdf download - # see: https://forum.cloudron.io/topic/11932/invoice-ninja-server-500-internal-error/29 - find vendor/beganovich/snappdf/versions/*-Linux_x64/chrome-linux/ -type f -name chrome* ! -name "*.*" -print -exec chmod 755 {} \; popd chmod 750 "$install_dir" diff --git a/scripts/upgrade b/scripts/upgrade index de23274..4676115 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,23 +9,13 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# CHECK VERSION -#================================================= - -upgrade_type=$(ynh_check_app_version_changed) - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= +ynh_script_progression --message="Upgrading source files..." --weight=1 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Upgrading source files..." --weight=1 - - # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env public/storage" -fi +# Download, check integrity, uncompress and patch the source from app.src +ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env public/storage" chmod -R o-rwx "$install_dir" chown -R $app:www-data "$install_dir" @@ -62,16 +52,12 @@ email="$(ynh_user_get_info --username=$admin --key=mail)" #================================================= # UPDATE A CONFIG FILE #================================================= +ynh_script_progression --message="Updating a configuration file..." --weight=1 -if [ "$upgrade_type" == "UPGRADE_APP" ] -then - ynh_script_progression --message="Updating a configuration file..." --weight=1 +ynh_add_config --template="default.env" --destination="$install_dir/.env" - ynh_add_config --template="default.env" --destination="$install_dir/.env" - - chmod 400 "$install_dir/.env" - chown $app:$app "$install_dir/.env" -fi +chmod 600 "$install_dir/.env" +chown $app:$app "$install_dir/.env" #================================================= # UPGRADE DATABASE @@ -81,11 +67,11 @@ ynh_script_progression --message="Upgrading the database..." --weight=1 pushd "$install_dir" # Clear caches # https://github.com/invoiceninja/invoiceninja/issues/7397 - ynh_secure_remove --file=$install_dir/bootstrap/cache/ - ynh_secure_remove --file=$install_dir/storage/framework/cache/ - ynh_secure_remove --file=$install_dir/storage/framework/sessions/ + #ynh_secure_remove --file=$install_dir/bootstrap/cache/ + #ynh_secure_remove --file=$install_dir/storage/framework/cache/ + #ynh_secure_remove --file=$install_dir/storage/framework/sessions/ - mkdir -p $install_dir/bootstrap/cache/ $install_dir/storage/framework/cache/ $install_dir/storage/framework/sessions/ + #mkdir -p $install_dir/bootstrap/cache/ $install_dir/storage/framework/cache/ $install_dir/storage/framework/sessions/ # clear cached stuff under /app/data/storage/framework (https://github.com/laravel/framework/issues/17377) php$phpversion artisan view:clear @@ -98,14 +84,8 @@ pushd "$install_dir" php$phpversion artisan optimize --no-interaction --verbose # clear cached stuff under /app/data/storage/framework (https://github.com/laravel/framework/issues/17377) - php$phpversion artisan view:clear - php$phpversion artisan cache:clear - - # install snappdf, since it isn't included by default anymore since - # 5.5.12: https://invoiceninja.github.io/docs/self-host-troubleshooting/#pdf-conversion-issues - php$phpversion vendor/bin/snappdf download - # see: https://forum.cloudron.io/topic/11932/invoice-ninja-server-500-internal-error/29 - find vendor/beganovich/snappdf/versions/*-Linux_x64/chrome-linux/ -type f -name chrome* ! -name "*.*" -print -exec chmod 755 {} \; + #php$phpversion artisan view:clear + #php$phpversion artisan cache:clear popd chmod 750 "$install_dir"