From 274f09b9aa1c57fa49a72fc3bdb1387442ade783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 3 Oct 2023 11:41:51 +0200 Subject: [PATCH] Update install --- scripts/install | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/install b/scripts/install index 3e63e67..e8e96d8 100755 --- a/scripts/install +++ b/scripts/install @@ -42,6 +42,16 @@ chown $app -R /var/log/$app yunohost service add $app --description="Simple bookmark manager" --log="/var/log/$app/$app.log" +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 + +ynh_add_config --template="../conf/.env" --destination="$install_dir/.env" + +chmod 400 "$install_dir/.env" +chown $app:$app "$install_dir/.env" + #================================================= # START SYSTEMD SERVICE #=================================================