add info
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
#### 1. Genera una pagina html con il link aggiornato di streamingcommunity (richiede "attuale.txt"):
|
#### 1. Genera una pagina html con il link aggiornato di streamingcommunity (richiede "attuale.txt"):
|
||||||
|
|
||||||
|
##### 1.1 Le istruzioni sono uguali sia per make_index.sh che per make_index_without_stats.sh
|
||||||
|
|
||||||
|
**make_index.sh**: Genera la index scaricando le stats (make_stats.sh), quindi ne mostra i link sulla index <br>
|
||||||
|
**make_index_without_stats.sh**: Genera la index senza scaricare e mostrare le stats
|
||||||
```
|
```
|
||||||
# Setta la variabile "PWD_SC" in testa allo script o lasciala con "PWD" per provare in locale
|
# Setta la variabile "PWD_SC" in testa allo script o lasciala con "PWD" per provare in locale
|
||||||
nano make_index.sh
|
nano make_index.sh
|
||||||
@@ -10,7 +14,7 @@ nano make_index.sh
|
|||||||
# oppure mettilo in cron
|
# oppure mettilo in cron
|
||||||
0 0 * * * /path/to/make_index.sh
|
0 0 * * * /path/to/make_index.sh
|
||||||
```
|
```
|
||||||
#### 1.1 Se vuoi pubblicarla sul web, mettila dietro un reverseproxy e deccommenta il comando che da i permessi alla cartella con lo script:
|
#### 1.2 Se vuoi pubblicarla sul web, mettila dietro un reverseproxy e deccommenta il comando che da i permessi alla cartella con lo script:
|
||||||
```
|
```
|
||||||
sudo chown -R www-data:www-data $PWD_SC; sudo chmod -R 755 $PWD_SC
|
sudo chown -R www-data:www-data $PWD_SC; sudo chmod -R 755 $PWD_SC
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Scarica pagine "test" da ip pre CF
|
||||||
curl --no-progress-meter -L http://52.203.236.205:8080/ -o stats1.html
|
curl --no-progress-meter -L http://52.203.236.205:8080/ -o stats1.html
|
||||||
curl --no-progress-meter -L http://52.203.236.205:8081/ -o stats2.html
|
curl --no-progress-meter -L http://52.203.236.205:8081/ -o stats2.html
|
||||||
curl --no-progress-meter -L http://52.203.236.205:8080/download/userViewer.json -o userViewer.json
|
curl --no-progress-meter -L http://52.203.236.205:8080/download/userViewer.json -o userViewer.json
|
||||||
curl --no-progress-meter -L http://52.203.236.205:8080/download/userVieweOperation.json -o userVieweOperation.json
|
curl --no-progress-meter -L http://52.203.236.205:8080/download/userVieweOperation.json -o userVieweOperation.json
|
||||||
|
|
||||||
|
# Aggiusta link
|
||||||
sed -i 's|/download/userViewer.json|./userViewer.json|g' stats1.html
|
sed -i 's|/download/userViewer.json|./userViewer.json|g' stats1.html
|
||||||
sed -i 's|/download/userViewer.json|./userViewer.json|g' stats2.html
|
sed -i 's|/download/userViewer.json|./userViewer.json|g' stats2.html
|
||||||
sed -i 's|/download/userVieweOperation.json|./userVieweOperation.json|g' stats1.html
|
sed -i 's|/download/userVieweOperation.json|./userVieweOperation.json|g' stats1.html
|
||||||
|
|||||||
Reference in New Issue
Block a user