Skip to content

Commit 46ac235

Browse files
committed
more robust testing of installed and running lxd-service
1 parent 6ecdabf commit 46ac235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ check_lxd(){
179179

180180
## Wir testen die Version
181181

182-
if [ `systemctl is-active lxd.service` = "active" ] ; then
182+
if [ `snap list | grep -c lxd ` -eq 1 ] || [ `systemctl is-active lxd.service` = "active" ] ; then
183183
echo "LXD ist installiert und gestartet"
184184
else
185185
echo "LXD ist nicht installiert oder nicht aktiv"

0 commit comments

Comments
 (0)