From e87b948eff6b5997d5d9a2d9204b62377348f2cd Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 4 Dec 2022 19:05:12 +0100 Subject: [PATCH] Propagate previous changes to bullseye script as well --- bullseye | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bullseye b/bullseye index 1f07522..e40f8ae 100755 --- a/bullseye +++ b/bullseye @@ -234,6 +234,9 @@ function check_assertions() # 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." + # Check PATH var + [[ "$PATH" == *"/sbin"* ]] || die "Your environment PATH variable must contains /sbin directory. Maybe try running 'PATH=/sbin:\$PATH' to fix this." + # Assert systemd is installed command -v systemctl > /dev/null || die "YunoHost requires systemd to be installed." @@ -304,7 +307,7 @@ function upgrade_system() { function install_script_dependencies() { # dependencies of the install script itself - local DEPENDENCIES="lsb-release whiptail gnupg apt-transport-https" + local DEPENDENCIES="lsb-release whiptail gnupg apt-transport-https adduser" if [[ "$AUTOMODE" == "0" ]] ; then