From 1a83fa6812fb82eae5913756da91af8a90af4346 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 30 Aug 2017 13:16:12 +0200 Subject: [PATCH] [enh] Replace force option by a better check --- install_yunohost | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_yunohost b/install_yunohost index 30f0c34..f5ffde6 100755 --- a/install_yunohost +++ b/install_yunohost @@ -186,7 +186,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