diff --git a/buster b/buster index 8e7fa44..4c84441 100755 --- a/buster +++ b/buster @@ -228,9 +228,13 @@ function check_assertions() fi fi + # Assert we're root [[ "$(id -u)" == "0" ]] || die "This script must be run as root. On most setups, the command 'sudo -i' can be run first to become root." + # Assert we're root + [[ "$PATH" == *"/sbin"* ]] || die "Your environment PATH variable must contains /sbin directory." + # Assert systemd is installed command -v systemctl > /dev/null || die "YunoHost requires systemd to be installed."