Demande activation/desactivation Astroport/CRON/ipfs

This commit is contained in:
fred 2021-10-31 22:33:05 +01:00
parent a540cea051
commit 284feb8e7b
1 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -x
########################################################################
# Author: Fred (support@qo-op.com)
# Version: 0.1
@ -89,11 +89,12 @@ 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 OFF" --text="Activer Astroport ?" --entry-text="OUI" NON)
[[ $RUN == "" || $RUN == "NON" ]] && exit 1
[[ ! $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
## DES/ACTIVATION ASTROPORT
[[ $RUN == "OUI" ]] && REP=$(~/.zen/astrXbian/zen/cron_VRFY.sh) && zenity --warning --width 600 --text "$REP"
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1)
[[ $YOU == "" ]] && exit 1
########################################################################
# CHOOSE CATEGORY (remove anime, not working!)