From 9139472a675a61e7f00c93bb9f888da095ea854e Mon Sep 17 00:00:00 2001 From: Yax <kianby@madyanne.fr> Date: Sat, 16 Sep 2017 10:36:30 +0000 Subject: [PATCH] add nextcloud probes --- vilain | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/vilain b/vilain index 3282278..9c2841c 100755 --- a/vilain +++ b/vilain @@ -1,8 +1,10 @@ #!/bin/sh +# script to launch vilain with the latest python3 version available + PYTHONVERSION=$(ls -l /usr/local/bin/python3.* |grep -Eo "3\.[0-9]" |tail -n1) PYTHON="/usr/local/bin/python$PYTHONVERSION" if [ -x $PYTHON ]; then - $PYTHON /usr/local/sbin/vilain.py >> /var/log/daemon 2>&1 & + $PYTHON /usr/local/sbin/vilain.py >/dev/null 2>&1 & else echo "Error : no python3 executable found" fi -- Gitblit v1.9.3