Fix systemd check

This commit is contained in:
Tobias Kussel 2023-02-22 15:42:52 +01:00
parent 191e986364
commit 4578c77d4b
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ log "INFO" "Preparing your system for bridgehead installation ..."
# Check, if running in WSL
if [[ $(grep -i Microsoft /proc/version) ]]; then
# Check, if systemd is available
if [ ! $(systemctl) ]; then
if [ $(systemctl is-system-running) -eq "offline" ]; then
log "ERROR" "It seems, that you have no active systemd environment in your WSL. Please follow the guide in https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/"
exit 1
fi