mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
[enh] Replace force option by a better check
This commit is contained in:
parent
e3b2db632c
commit
1a83fa6812
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue