From a540cea051a2bb5f0985b4adde71f39a669dfd10 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 31 Oct 2021 21:36:10 +0100 Subject: [PATCH] activate/desactivate astroport/cron/ipfs --- ajouter_video.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ajouter_video.sh b/ajouter_video.sh index b618e70..727a021 100755 --- a/ajouter_video.sh +++ b/ajouter_video.sh @@ -89,8 +89,9 @@ fi ## CHECK IF ASTROPORT/CRON/IPFS IS RUNNING YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) -[[ ! $YOU ]] && RUN=$(zenity --entry --width 300 --title="Astroport/IPFS is OFF" --text="Activer Astroport ?" --entry-text="OUI" NON) +[[ ! $YOU ]] && RUN=$(zenity --entry --width 300 --title="Astroport IPFS OFF" --text="Activer Astroport ?" --entry-text="OUI" NON) [[ $RUN == "" || $RUN == "NON" ]] && exit 1 +[[ $YOU ]] && RUN=$(zenity --entry --width 300 --title="Astroport IPFS ON" --text="Désactiver Astroport ?" --entry-text="OUI" NON) ## ACTIVATION ASTROPORT [[ $RUN == "OUI" ]] && REP=$(~/.zen/astrXbian/zen/cron_VRFY.sh) && zenity --warning --width 600 --text "$REP"