Bugfix - remove not needed trap

Its just a potential trap for creating all locales which can takes hours to complete.
This commit is contained in:
Igor Pečovnik 2020-07-19 21:08:03 +02:00 committed by GitHub
parent 56be68b38c
commit 425aea17b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,24 +82,6 @@ set_timezone_and_locales()
locale-gen $LOCALES > /dev/null 2>&1
update-locale LANG=$LOCALES LANGUAGE=$LOCALES LC=$LOCALES LC_MESSAGES=$LOCALES
else
while true; do
echo ""
read -p "Do you wish to set time zone and locales? [No]" yn
if [ -z $yn ]; then yn=no; fi
case $yn in
[Yy]* )
dpkg-reconfigure tzdata
dpkg-reconfigure locales
break
;;
[Nn]* )
break
;;
* ) echo "Please answer yes or no.";;
esac
done
fi
}