change language after network is set

This commit is contained in:
Daniel Hansson 2017-02-08 17:41:40 +01:00
parent b7d3eb4eac
commit 6136cf6a5f
No known key found for this signature in database
GPG Key ID: 21507066D9FC6797

View File

@ -405,16 +405,6 @@ read -p "Press any key to start the script..." -n1 -s
clear
echo -e "\e[0m"
# Set keyboard layout
echo "Current keyboard layout is $(localectl status | grep "Layout" | awk '{print $3}')"
echo "You must change keyboard layout to your language"
echo -e "\e[32m"
read -p "Press any key to change keyboard layout... " -n1 -s
echo -e "\e[0m"
dpkg-reconfigure keyboard-configuration
echo
clear
# Set hostname and ServerName
echo "Setting hostname..."
FQN=$(host -TtA $(hostname -s)|grep "has address"|awk '{print $1}') ; \
@ -472,7 +462,7 @@ then
sleep 1
echo
CONTEST=$(bash $SCRIPTS/test_connection.sh)
if [ "$CONTEST" == "Connected!" ]
if [ "$CONTEST" == "Connected!" ]
then
# Connected!
echo -e "\e[32mConnected!\e[0m"
@ -508,6 +498,16 @@ else
fi
clear
# Set keyboard layout
echo "Current keyboard layout is $(localectl status | grep "Layout" | awk '{print $3}')"
echo "You must change keyboard layout to your language"
echo -e "\e[32m"
read -p "Press any key to change keyboard layout... " -n1 -s
echo -e "\e[0m"
dpkg-reconfigure keyboard-configuration
echo
clear
# Pretty URLs
echo "Setting RewriteBase to "/" in config.php..."
chown -R www-data:www-data $NCPATH