mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
[fix] PATH with no sbin dir
This commit is contained in:
parent
dea5a9a2fc
commit
a3984321dd
1 changed files with 4 additions and 0 deletions
4
buster
4
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."
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue