mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Also allow install on stretch
This commit is contained in:
parent
79a01bba84
commit
ba8fd996bf
1 changed files with 4 additions and 2 deletions
|
@ -16,6 +16,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
YUNOHOST_LOG="/var/log/yunohost-installation.log"
|
YUNOHOST_LOG="/var/log/yunohost-installation.log"
|
||||||
|
THIS_MACHINE_RELEASE="$(lsb_release -c | awk '{print $2}')"
|
||||||
|
|
||||||
print() {
|
print() {
|
||||||
printf "%s\n" "$*";
|
printf "%s\n" "$*";
|
||||||
|
@ -182,8 +183,9 @@ setup_package_source() {
|
||||||
local CUSTOMAPT=/etc/apt/sources.list.d/yunohost.list
|
local CUSTOMAPT=/etc/apt/sources.list.d/yunohost.list
|
||||||
|
|
||||||
# Check current system version and dependencies
|
# Check current system version and dependencies
|
||||||
if [[ $(lsb_release -c | awk '{print $2}') != jessie ]]; then
|
|
||||||
echo "Current $DISTRIB only works on Debian Jessie for the moment."
|
if [[ $THIS_MACHINE_RELEASE =~ ^jessie|stretch$ ]]; then
|
||||||
|
echo "Current $DISTRIB only works on Debian Jessie or Stretch for the moment."
|
||||||
return 1
|
return 1
|
||||||
elif ! command -v systemctl > /dev/null ; then
|
elif ! command -v systemctl > /dev/null ; then
|
||||||
echo "Current $DISTRIB only works with systemd for the moment."
|
echo "Current $DISTRIB only works with systemd for the moment."
|
||||||
|
|
Loading…
Add table
Reference in a new issue