From a2145a03e24ae4b888114c8db1c7cf0818a5ca43 Mon Sep 17 00:00:00 2001 From: h4775346 Date: Mon, 1 Jul 2024 19:29:15 +0300 Subject: [PATCH] Added (Check Duplicates Before Adding New User) --- index.php | 4 ++-- sas4-install.sh | 27 +++++++++++++++------------ 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/index.php b/index.php index 1e8976e..448b722 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@ /tmp/sas4.conf && mv /tmp/sas4.conf $APACHE_CONF fi +# Allow writing to the chap-secrets file +chmod 666 $CHAP_SECRETS + # Restart Apache to apply the changes systemctl restart apache2 +# Cleanup +rm /tmp/l2tp-manager.zip + echo "l2tp-manager installed and Apache configuration updated."