Skip to content

Commit 0ca3f59

Browse files
committed
dont use systemd when running on wsl
1 parent 8fbd8a3 commit 0ca3f59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/bridgehead

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ main() {
2727
git config --local http.proxy {{ proxy_url }}
2828
git config --local https.proxy {{ proxy_url }}
2929
{%- endif %}
30-
if ! systemctl list-units &> /dev/null; then
31-
echo "Systemd is not active. Skipping systemd setup."
30+
if ! systemctl status docker &> /dev/null; then
31+
echo "Systemd is not active or docker is not running via systemd. Skipping systemd setup."
3232
sudo -u bridgehead ./bridgehead update
3333
else
3434
install_systemd

0 commit comments

Comments
 (0)