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:
parent
90a62128c0
commit
9107b3fc84
1 changed files with 11 additions and 1 deletions
|
@ -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}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue