mirror of
https://github.com/samply/bridgehead.git
synced 2026-06-23 16:10:17 +02:00
don't abort when trying to install on wsl without systemd
This commit is contained in:
@@ -11,8 +11,7 @@ log "INFO" "Preparing your system for bridgehead installation ..."
|
|||||||
if [[ $(grep -i Microsoft /proc/version) ]]; then
|
if [[ $(grep -i Microsoft /proc/version) ]]; then
|
||||||
# Check, if systemd is available
|
# Check, if systemd is available
|
||||||
if [ "$(systemctl is-system-running)" = "offline" ]; then
|
if [ "$(systemctl is-system-running)" = "offline" ]; then
|
||||||
log "ERROR" "It seems you have no active systemd environment in your WSL environment. Please follow the guide in https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/"
|
log "WARN" "It seems you have no active systemd environment in your WSL environment. Please follow the guide in https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -115,4 +114,3 @@ chown -R bridgehead:docker /tmp/bridgehead /var/cache/bridgehead
|
|||||||
chmod -R g+wr /var/cache/bridgehead /tmp/bridgehead
|
chmod -R g+wr /var/cache/bridgehead /tmp/bridgehead
|
||||||
|
|
||||||
log INFO "System preparation is completed and configuration is present."
|
log INFO "System preparation is completed and configuration is present."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user