app_containers: Kill all previously running instances
Because things like dbus can be broken inside.
This commit is contained in:
parent
edcfaef386
commit
1afb772f71
|
@ -29,6 +29,10 @@ if [ -f "$config" ]; then
|
||||||
source "$config"
|
source "$config"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Kill any previously running instances
|
||||||
|
# This could be due to, say, a broken libappindicator icon (because of broken dbus)
|
||||||
|
sudo -A machinectl kill $CONTAINER_NAME > /dev/null 2>&1
|
||||||
|
|
||||||
# Create a XDG_RUNTIME_DIR for guest on host
|
# Create a XDG_RUNTIME_DIR for guest on host
|
||||||
container_xdg_runtime="$(mktemp -d -p /var/tmp)"
|
container_xdg_runtime="$(mktemp -d -p /var/tmp)"
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
Loading…
Reference in a new issue