1
0
Fork 0
mirror of https://github.com/fernwerker/ownDynDNS.git synced 2025-07-10 06:05:13 +02:00

added return config option to config

This commit is contained in:
Nils Blume 2023-08-22 14:24:19 +02:00
parent 90a62128c0
commit 9107b3fc84

View file

@ -2,7 +2,7 @@
echo "### ownDynDNS configuration script" echo "### ownDynDNS configuration script"
# set variables # set variables
scriptversion="1.3.1" scriptversion="1.4"
wwwuserd="www-data" wwwuserd="www-data"
wwwgroupd="www-data" wwwgroupd="www-data"
@ -132,6 +132,15 @@ esac
echo "if you are using nginx please read the docs about how to disable access to certain files and folders.\nyou might add a location block to the beginning of your site config as follows:" echo "if you are using nginx please read the docs about how to disable access to certain files and folders.\nyou might add a location block to the beginning of your site config as follows:"
echo -e " location ~* (env|log|json) {\n deny all;\n return 404;\n }" echo -e " location ~* (env|log|json) {\n deny all;\n return 404;\n }"
read -p "do you wish to enable result return? [y/N]: " returnip
if [[ ${returnip,,::1} == "y" ]]
then
#echo "enabling return ip"
returnip="true"
else
#echo "disabling return ip"
returnip="false"
fi
### create the .env file ### create the .env file
@ -158,5 +167,6 @@ echo "customerId=\"${custid}\"" >> $envfile
echo "debug=${debug}" >> $envfile echo "debug=${debug}" >> $envfile
echo "log=${log}" >> $envfile echo "log=${log}" >> $envfile
echo "logFile=${logfile}" >> $envfile echo "logFile=${logfile}" >> $envfile
echo "returnIp=${returnip}" >> $envfile
echo "created .env file at: ${envfile}" echo "created .env file at: ${envfile}"