Update 'install.sh'

This commit is contained in:
Gyorgy Berenyi
2023-07-13 09:57:39 +00:00
parent 2f74b72156
commit 850f850140

View File

@@ -456,9 +456,10 @@ if [ ! -f /etc/wsl.conf ]; then
$SUDO_CMD touch /etc/wsl.conf; $SUDO_CMD touch /etc/wsl.conf;
fi fi
SYSTEM_SETTINGS=$(grep -Pzow '\[boot\]\nsystemd\=true' /etc/wsl.conf); SYSTEM_SETTINGS=$(grep -Pzow '\[boot\]\nsystemd\=true' /etc/wsl.conf 2> /dev/null);
if [ "$SYSTEM_SETTINGS" == "" ]; then if [ "$SYSTEM_SETTINGS" == "" ]; then
echo "[boot]\nsystemd=true" | $SUDO_CMD tee /etc/wsl.conf; echo "[boot]
systemd=true" | $SUDO_CMD tee /etc/wsl.conf;
echo "Not corresponding wsl configuration found, modified and need a WSL system restart from Windows terminal"; echo "Not corresponding wsl configuration found, modified and need a WSL system restart from Windows terminal";
fi fi