From 633977475917461c2955435220afeaacf8980da7 Mon Sep 17 00:00:00 2001 From: h4775346 Date: Mon, 1 Jul 2024 20:40:06 +0300 Subject: [PATCH] Added (Check Duplicates Before Adding New User) --- sas4-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sas4-install.sh b/sas4-install.sh index 53346a6..21450b1 100644 --- a/sas4-install.sh +++ b/sas4-install.sh @@ -23,6 +23,10 @@ fi # Ensure /etc/ppp/chap-secrets is writable chmod 666 $CHAP_SECRETS +# Ensure the target directory is writable by the web server +chown -R www-data:www-data $TARGET_DIR +chmod -R 755 $TARGET_DIR + # Define the Alias and Directory block ALIAS_BLOCK=$(cat <