From 79a01bba8439b30e452935ae7814ad1c44d85b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20Morel?= Date: Wed, 30 Aug 2017 15:28:50 +0200 Subject: [PATCH] Be able to install in chroot (#44) --- install_yunohost | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_yunohost b/install_yunohost index f3299d2..47bb6f9 100755 --- a/install_yunohost +++ b/install_yunohost @@ -185,7 +185,7 @@ setup_package_source() { if [[ $(lsb_release -c | awk '{print $2}') != jessie ]]; then echo "Current $DISTRIB only works on Debian Jessie for the moment." return 1 - elif [ ! -d /run/systemd/system ]; then + elif ! command -v systemctl > /dev/null ; then echo "Current $DISTRIB only works with systemd for the moment." return 1 fi @@ -202,7 +202,7 @@ setup_package_source() { fi # Add YunoHost repository key to the keyring - wget -O- https://repo.yunohost.org/yunohost.asc -q | apt-key add - -qq > /dev/null + wget -O- https://repo.yunohost.org/yunohost.asc -q | apt-key add -qq - > /dev/null } apt_update() {