depannage ssh

This commit is contained in:
qo-op 2021-03-06 23:21:00 +01:00
parent 6259427324
commit 83f8289af4
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` 2>&1>/dev/null && echo
########################################################################
### TEMP CODE (add missing packages to xbian) - TODO REMOVE after 30 mn for git pull & apply
# [[ $(which ffmpeg) == "" && "$USER" == "xbian" ]] && sudo apt-get update && sudo apt-get install git fail2ban inotify-tools curl net-tools libsodium* python3-dev python3-pip python3-setuptools python3-wheel mpack libssl-dev libffi-dev build-essential qrencode jq bc gawk ffmpeg sqlite dnsutils vlc mp3info x11-utils -y
[[ ! $(ipfs p2p ls | grep $G1PUB-ssh) ]] && sleep $((1 + RANDOM % 20)) && ~/.zen/astrXbian/zen/ssh_forward2onelove.sh # OPEN-SSH
# [[ $(ipfs p2p ls | grep $G1PUB-ssh) ]] && sleep $((1 + RANDOM % 20)) && ~/.zen/astrXbian/zen/ssh_forward2onelove.sh # CLOSE-SSH
[[ "$(ipfs p2p ls | grep $G1PUB-ssh)" == "" ]] && sleep $((1 + RANDOM % 20)) && ~/.zen/astrXbian/zen/ssh_forward2onelove.sh # OPEN-SSH
# [[ "$(ipfs p2p ls | grep $G1PUB-ssh)" != "" ]] && sleep $((1 + RANDOM % 20)) && ~/.zen/astrXbian/zen/ssh_forward2onelove.sh # CLOSE-SSH
########################################################################
########################################################################