From d32636f37584d01e91843bfc19f4b64733983d96 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 26 Jul 2021 11:10:37 +0200 Subject: [PATCH] fix --- conf/systemd.service | 2 +- scripts/install | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 8d37f0e..d4d89d2 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,5 +1,5 @@ [Unit] -Description=invoiceninja: Create and email invoices +Description=InvoiceNinja: Create and email invoices After=network.target [Service] diff --git a/scripts/install b/scripts/install index 50be883..a7725b7 100755 --- a/scripts/install +++ b/scripts/install @@ -30,6 +30,12 @@ language=$YNH_APP_ARG_LANGUAGE app=$YNH_APP_INSTANCE_NAME +api_secret="$(ynh_string_random --length=32)" +app_key="$(ynh_string_random --length=32)" +phantomjs_key="$(ynh_string_random --length=32)" +email_name="$(ynh_user_get_info $admin firstname) $(ynh_user_get_info $admin lastname)" +email="$(ynh_user_get_info $admin mail)" + #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS #================================================= @@ -51,13 +57,6 @@ ynh_app_setting_set --app=$app --key=path --value=$path_url ynh_app_setting_set --app=$app --key=admin --value=$admin ynh_app_setting_set --app=$app --key=language --value=$language -ynh_app_setting_set --app=$app --key=api_secret --value="$(ynh_string_random --length=32)" -ynh_app_setting_set --app=$app --key=app_key --value="$(ynh_string_random --length=32)" -ynh_app_setting_set --app=$app --key=phantomjs_key --value="$(ynh_string_random --length=32)" - -ynh_app_setting_set --app=$app --key=email --value="$(ynh_user_get_info $admin mail)" -ynh_app_setting_set --app=$app --key=email__name --value="$(ynh_user_get_info $admin firstname) $(ynh_user_get_info $admin lastname)" - #================================================= # STANDARD MODIFICATIONS #=================================================