mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Forbid people from running this script on Ubuntu or Linux Mint ...
This commit is contained in:
parent
d3a6d3e3db
commit
8dd580ffd9
1 changed files with 9 additions and 0 deletions
|
@ -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."
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue