From adb784ca4cf07ec30eaafefe6395fb09dba7f8cd Mon Sep 17 00:00:00 2001 From: Raine Date: Thu, 23 May 2024 20:25:30 +0200 Subject: [PATCH] fix: perms --- nodes/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nodes/install.sh b/nodes/install.sh index 4095d73..22d9e6f 100755 --- a/nodes/install.sh +++ b/nodes/install.sh @@ -3,4 +3,6 @@ cp ./etc/rsyncd.conf /etc/rsyncd.conf [ -d "/var/lib/sfbs" ] || mkdir -p /var/lib/sfbs [ -f "/var/lib/sfbs/rsync-password" ] || openssl rand -hex 16 > /var/lib/sfbs/rsync-password -[ -f "/var/lib/sfbs/rsync-auth" ] || (echo "sfbs:$(cat /var/lib/sfbs/rsync-password)" > /var/lib/sfbs/rsync-auth) \ No newline at end of file +chmod 600 /var/lib/sfbs/rsync-password +[ -f "/var/lib/sfbs/rsync-auth" ] || (echo "sfbs:$(cat /var/lib/sfbs/rsync-password)" > /var/lib/sfbs/rsync-auth) +chmod 600 /var/lib/sfbs/rsync-auth \ No newline at end of file