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."