Update 'install.sh'

This commit is contained in:
Gyorgy Berenyi
2023-07-13 09:45:13 +00:00
parent a3b83a4f90
commit 0d1fe667b6

View File

@@ -456,10 +456,10 @@ if [ ! -f /etc/wsl.conf ]; then
$SUDO_CMD touch /etc/wsl.conf; $SUDO_CMD touch /etc/wsl.conf;
fi fi
SYSTEM_SETTINGS=$($SUDO_CMD grep -Pzow '\[boot\]\nsystemd\=true' /etc/wsl.conf); SYSTEM_SETTINGS=$(grep -Pzow '\[boot\]\nsystemd\=true' /etc/wsl.conf);
if [ "$SYSTEM_SETTINGS" == "" ]; then if [ "$SYSTEM_SETTINGS" == "" ]; then
$SUDO_CMD echo "[boot] echo "[boot]
systemd=true" | $SUDO_CMD cat /etc/wsl.conf; 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