From f310c89a10039e058c8b92df1abf256394a39a77 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Thu, 25 Jan 2024 18:17:37 +0100 Subject: [PATCH] trying to fix the libssl.so.3 not found bug --- scripts/_common.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index ee6bfce..54a5dbf 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -26,9 +26,16 @@ _download_vaultwarden_from_docker() { mv -f "$install_dir/build/"{vaultwarden,web-vault} "$install_dir/live/" ynh_secure_remove --file="$install_dir/build" + # fixes the libssl.so.3 not found bug + libssl_path=$(which openssl) + if ! grep -q "$libssl_path" /etc/ld.so.conf ; then + echo "include $libssl_path" >> /etc/ld.so.conf + ldconfig + fi + chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" - chown -R $app:$app "$install_dir" + chown -R "$app:$app" "$install_dir" } #=================================================