check if dbus not available (i.e. in chroot)
This commit is contained in:
parent
3a4e052d7b
commit
797d27521b
1 changed files with 5 additions and 0 deletions
|
|
@ -29,6 +29,11 @@ if [[ $EUID -ne 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -d /var/run/dbus ]]; then
|
||||||
|
echo "ERROR: Unable to use snapper without dbus. Are you in a chroot environment?"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $# -ne 1 ]]; then
|
if [[ $# -ne 1 ]]; then
|
||||||
echo "ERROR: Only one argument should be passed to this script."
|
echo "ERROR: Only one argument should be passed to this script."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue