add gchange in ~/.zen/ipfs/index.html

This commit is contained in:
qo-op 2021-05-23 04:47:18 +02:00
parent 48d86ceb67
commit 032741e856
3 changed files with 14 additions and 2 deletions

View File

@ -6,6 +6,7 @@
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
########################################################################
# REGULATEUR DES PULSATIONS DE L'AUTOMATE # CADENCE # 1/60 Hz
# INJECTEZ VOS ACTIONS DANS LES CYCLES...
########################################################################
MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
@ -113,6 +114,7 @@ if [[ $(($minute % 15)) == 0 ]]; then
# fi
# CLEAN AND REMOVE BAD DIRECTORIES
[[ -f ~/.zen/ipfs/index.html ]] && cp ~/.zen/ipfs/index.html /tmp/ipfsindex.html
[[ -d ~/.zen/ipfs/astroport ]] && rm -Rf ~/.zen/ipfs/astroport
[[ -d ~/.zen/ipfs_swarm/astroport ]] && rm -Rf ~/.zen/ipfs_swarm/astroport
[[ -d ~/.zen/ipfs/xbian ]] && rm -Rf ~/.zen/ipfs/xbian
@ -124,6 +126,8 @@ if [[ $(($minute % 15)) == 0 ]]; then
rm ~/.zen/ipfs/.*
rm ~/.zen/ipfs_swarm/*
rm ~/.zen/ipfs_swarm/.*
[[ -f /tmp/ipfsindex.html ]] && mv /tmp/ipfsindex.html ~/.zen/ipfs/index.html
isIPFSRunning=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d ' ' -f 1)
if [[ ! $isIPFSRunning ]]; then

View File

@ -3,5 +3,13 @@ Copiez le répertoire du service dans ~/.zen/ipfs/.$IFSNODEID/WWW
Copiez le fichier html correspondant au service souhaité dans ~/.zen/ipfs/index.html
Adaptez la page d'acceuil en fonction des services souhaités....
Tout plugin navigateur doit être compatible
## ACTIVATION GCHANGE CLUSTER NODE
mkdir -p ~/.zen/ipfs/.$IPFSNODEID/WWW
cp -Rf ~/.zen/astrXbian/www/FULLJS/gchange-web ~/.zen/ipfs/.$IPFSNODEID/WWW
cp ~/.zen/astrXbian/www/FULLJS/gchange.html ~/.zen/ipfs/index.html
sed -i "s/_IPFSNODEID_/$IPFSNODEID/g" ~/.zen/ipfs/index.html
---
Tout plugin navigateur, site web JS devraient être compatible avec cette méthode !!

View File

@ -1 +1 @@
<meta charset="UTF-8"><meta http-equiv="Refresh" content="10;URL=https://oasis.astroport.com/ipns/_IPFSNODEID_/._IPFSNODEID_/WWW/gchange-web/">
<meta charset="UTF-8"><meta http-equiv="Refresh" content="0;URL=https://oasis.astroport.com/ipns/_IPFSNODEID_/._IPFSNODEID_/WWW/gchange-web/">