From ec7b755c42301d4afd105bb8bb8e17f5e1ecd9c6 Mon Sep 17 00:00:00 2001 From: Nils Blume Date: Wed, 23 Aug 2023 13:17:13 +0200 Subject: [PATCH] include create --- .configure.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.configure.sh b/.configure.sh index a3f10c2..50c73d9 100644 --- a/.configure.sh +++ b/.configure.sh @@ -2,7 +2,7 @@ echo "### ownDynDNS configuration script" # set variables -scriptversion="1.4" +scriptversion="1.5" wwwuserd="www-data" wwwgroupd="www-data" @@ -142,6 +142,16 @@ else returnip="false" fi +read -p "do you want to allow creation of new entries on the fly? [y/N]: " allowcreate +if [[ ${allowcreate,,::1} == "y" ]] +then + #echo "enabling return ip" + allowcreate="true" +else + #echo "disabling return ip" + allowcreate="false" +fi + ### create the .env file if [ -f $envfile ] @@ -168,5 +178,6 @@ echo "debug=${debug}" >> $envfile echo "log=${log}" >> $envfile echo "logFile=${logfile}" >> $envfile echo "returnIp=${returnip}" >> $envfile +echo "allowCreate=${allowcreate}" >> $envfile echo "created .env file at: ${envfile}"