From 73f3d8530962d7a4205eb59d944cdfb5b00a9708 Mon Sep 17 00:00:00 2001 From: jon4hz Date: Thu, 4 Sep 2025 14:45:51 +0200 Subject: [PATCH] fix: dont return status code 1 if unlock-home.sh is already linked --- bin/admin/setup-encryption.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/admin/setup-encryption.sh b/bin/admin/setup-encryption.sh index 42c7eb9..3c7743f 100755 --- a/bin/admin/setup-encryption.sh +++ b/bin/admin/setup-encryption.sh @@ -214,5 +214,7 @@ else action_error "Couldn't umount /home to run the test, ignoring" fi -[ ! -e /root/unlock-home.sh ] && ln -s /opt/bastion/bin/admin/unlock-home.sh /root/ +if [ ! -e /root/unlock-home.sh ]; then + ln -s /opt/bastion/bin/admin/unlock-home.sh /root/ +fi