1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invoiceninja5_ynh.git synced 2024-09-03 19:26:23 +02:00

Merge pull request #202 from YunoHost-Apps/testing

Testing
This commit is contained in:
Sebastian Gumprich 2023-12-12 19:52:12 +01:00 committed by GitHub
commit 2639306123
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 26 additions and 15 deletions

View file

@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Invoice Ninja is the the leading self-hosted invoicing platform to create & email invoices, track payments and expenses, and time billable tasks & projects for clients.
**Shipped version:** 5.7.57~ynh1
**Shipped version:** 5.7.62~ynh1
**Demo:** https://react.invoicing.co/demo

View file

@ -19,7 +19,7 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
Invoice Ninja is the the leading self-hosted invoicing platform to create & email invoices, track payments and expenses, and time billable tasks & projects for clients.
**Version incluse :** 5.7.57~ynh1
**Version incluse :** 5.7.62~ynh1
**Démo :** https://react.invoicing.co/demo

View file

@ -26,7 +26,7 @@ MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS='__EMAIL__'
MAIL_FROM_NAME="__EMAIL_FIRSTNAME__ __EMAIL_LASTNAME__"
MAIL_FROM_NAME='__EMAIL_FULLNAME__'
DEMO_MODE=false

View file

@ -1,6 +1,6 @@
Please open your __APP__ domain: https://__DOMAIN____PATH_URL__
The username is: __EMAIL__
The username is the administrator's email address
The password is the administrator one you filled during the installation
The secret is: __API_SECRET__

View file

@ -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.7.57~ynh1"
version = "5.7.62~ynh1"
maintainers = ["Sebastian Gumprich"]
@ -58,8 +58,8 @@ ram.runtime = "50M"
[resources.sources]
[resources.sources.main]
url = "https://github.com/invoiceninja/invoiceninja/releases/download/v5.7.57/invoiceninja.zip"
sha256 = "b3340715e7a56cf10f0e20c03fb63f213f52963d756e7c1feb634222426af3de"
url = "https://github.com/invoiceninja/invoiceninja/releases/download/v5.7.62/invoiceninja.zip"
sha256 = "297284540f4e287411143d72d545635dfab5e6886db354197d544b4624ef5bd7"
in_subdir = false
autoupdate.strategy = "latest_github_release"
autoupdate.asset = "invoiceninja.zip"

View file

@ -10,27 +10,24 @@ source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# RETRIEVE ARGUMENTS FROM THE MANIFEST
# GENERATE KEYS AND RETRIEVE ADMIN USER INFO
#=================================================
api_secret="$(ynh_string_random --length=32)"
app_key="$(ynh_string_random --length=32)"
phantomjs_key="$(ynh_string_random --length=32)"
email_firstname="$(ynh_user_get_info --username=$admin --key=firstname)"
email_lastname="$(ynh_user_get_info --username=$admin --key=lastname)"
email_fullname="$(ynh_user_get_info --username=$admin --key=fullname)"
email="$(ynh_user_get_info --username=$admin --key=mail)"
#=================================================
# STORE SETTINGS FROM MANIFEST
# STORE KEYS TO APP SETTINGS
#=================================================
ynh_script_progression --message="Storing installation settings..."
ynh_script_progression --message="Storing secrets to app settings..."
ynh_app_setting_set --app=$app --key=api_secret --value=$api_secret
ynh_app_setting_set --app=$app --key=app_key --value=$app_key
ynh_app_setting_set --app=$app --key=phantomjs_key --value=$phantomjs_key
ynh_app_setting_set --app=$app --key=email_firstname --value="$email_firstname"
ynh_app_setting_set --app=$app --key=email_lastname --value="$email_lastname"
ynh_app_setting_set --app=$app --key=email --value=$email
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE

View file

@ -45,6 +45,20 @@ ynh_add_config --template="cron" --destination="/etc/cron.d/$app"
chown root: "/etc/cron.d/$app"
chmod 644 "/etc/cron.d/$app"
#=================================================
# ENSURE BACKWARD COMPATIBILITY
#=================================================
ynh_script_progression --message="Ensuring backward compatibility..." --weight=1
# Delete deprecated `firstname`/`lastname` settings. See upstream https://github.com/YunoHost/yunohost/pull/1516
ynh_app_setting_delete --app=$app --key=email_firstname
ynh_app_setting_delete --app=$app --key=email_lastname
ynh_app_setting_delete --app=$app --key=email # also delete unnecessary duplicate of state storage
# Retrieve `$admin` user settings
email_fullname="$(ynh_user_get_info --username=$admin --key=fullname)"
email="$(ynh_user_get_info --username=$admin --key=mail)"
#=================================================
# UPDATE A CONFIG FILE
#=================================================