mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
[fix] Fail if system dependencies are not met
This commit is contained in:
parent
ed3ce6ae8c
commit
09f810e053
1 changed files with 7 additions and 6 deletions
|
@ -168,12 +168,13 @@ setup_package_source() {
|
||||||
echo "deb http://repo.yunohost.org/ megusta main" > $CUSTOMAPT
|
echo "deb http://repo.yunohost.org/ megusta main" > $CUSTOMAPT
|
||||||
else
|
else
|
||||||
# Check current system version and dependencies
|
# Check current system version and dependencies
|
||||||
[[ $(lsb_release -c | awk '{print $2}') == jessie ]] \
|
if [[ $(lsb_release -c | awk '{print $2}') != jessie ]]; then
|
||||||
|| (echo "Current testing release only works on Debian Jessie \
|
echo "Current $DISTRIB only works on Debian Jessie for the moment."
|
||||||
for the moment." && exit 1)
|
return 1
|
||||||
[ -d /run/systemd/system ] \
|
elif [ ! -d /run/systemd/system ]; then
|
||||||
|| (echo "Current testing release only works with systemd \
|
echo "Current $DISTRIB only works with systemd for the moment."
|
||||||
for the moment." && exit 1)
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Make use of new repository
|
# Make use of new repository
|
||||||
local CUSTOMDEB="deb http://repo.yunohost.org/debian/ jessie stable"
|
local CUSTOMDEB="deb http://repo.yunohost.org/debian/ jessie stable"
|
||||||
|
|
Loading…
Add table
Reference in a new issue