From 8dd580ffd987b6086a26ebb4249474bace488722 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 24 Apr 2019 17:04:31 +0200 Subject: [PATCH] Forbid people from running this script on Ubuntu or Linux Mint ... --- install_yunohost | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install_yunohost b/install_yunohost index ff4f19b..71149db 100755 --- a/install_yunohost +++ b/install_yunohost @@ -215,6 +215,15 @@ function check_assertions() # only to check this... [[ "$(cat /etc/debian_version)" =~ ^9.* ]] || die "This script can only be ran on Debian Stretch." + # Forbid people from installing on Ubuntu or Linux mint ... + if [[ -f "/etc/lsb-release" ]]; + then + if cat /etc/lsb-release | grep -q -i "Ubuntu\|Mint" + then + die "Please don't try to install YunoHost on an Ubuntu or Linux Mint system ... You need a 'raw' Debian." + fi + fi + # Assert we're root [[ "$(id -u)" == "0" ]] || die "This script must be run as root."