From 15ec2b1e9bc3906390fe8df28057647bcefaf6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 31 Aug 2024 16:17:26 +0200 Subject: [PATCH 1/2] Update install --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 8730de9..d1d43df 100755 --- a/scripts/install +++ b/scripts/install @@ -3,6 +3,9 @@ source _common.sh source /usr/share/yunohost/helpers +key=$(ynh_string_random --length=45 | base64) +ynh_app_setting_set --app=$app --key=key --value=$key + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= From 5e11d71df77ac6d1ae6bf3e57899859d06de0c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 31 Aug 2024 16:18:59 +0200 Subject: [PATCH 2/2] Update systemd.service --- conf/systemd.service | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/systemd.service b/conf/systemd.service index 1141906..79b8ac6 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -11,6 +11,7 @@ WorkingDirectory=__INSTALL_DIR__/ ExecStart=__INSTALL_DIR__/shiori server --port __PORT__ --webroot __PATH__ Restart=always Environment="SHIORI_DIR=__DATA_DIR__" +Environment="SHIORI_HTTP_SECRET_KEY=__KEY__" [Install] WantedBy=multi-user.target