From 691e7e54ca16154778bfbde6fc56f3a47f80ff08 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 7 Jul 2021 00:13:20 +0200 Subject: [PATCH 1/3] [fix] Missing adduser deps --- install_yunohost | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_yunohost b/install_yunohost index a5b1c42..f087008 100755 --- a/install_yunohost +++ b/install_yunohost @@ -301,7 +301,7 @@ function upgrade_system() { function install_script_dependencies() { # dependencies of the install script itself - local DEPENDENCIES="lsb-release wget whiptail gnupg apt-transport-https" + local DEPENDENCIES="lsb-release wget whiptail gnupg apt-transport-https adduser" if [[ "$AUTOMODE" == "0" ]] ; then From cc152b0c95d6553b3b2544807f5987bbfdabba2a Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 7 Jul 2021 00:29:40 +0200 Subject: [PATCH 2/3] [fix] PATH with no sbin dir --- install_yunohost | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install_yunohost b/install_yunohost index f087008..bedcebf 100755 --- a/install_yunohost +++ b/install_yunohost @@ -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, typing 'sudo -i' can be used 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." From 01cdc4cd3c626ffe090f8b099b12f4390671a7f1 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 7 Jul 2021 00:30:32 +0200 Subject: [PATCH 3/3] [fix] Change comment --- install_yunohost | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install_yunohost b/install_yunohost index bedcebf..11c2a02 100755 --- a/install_yunohost +++ b/install_yunohost @@ -228,11 +228,10 @@ function check_assertions() fi fi - # Assert we're root [[ "$(id -u)" == "0" ]] || die "This script must be run as root. On most setups, typing 'sudo -i' can be used to become root." - # Assert we're root + # Check PATH var [[ "$PATH" == *"/sbin"* ]] || die "Your environment PATH variable must contains /sbin directory." # Assert systemd is installed