diff --git a/README.md b/README.md index 6e20c67..2188076 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ #### 1. Genera una pagina html con il link aggiornato di streamingcommunity -Le istruzioni di installazione/settaggio sono uguali sia per [make_index.sh](./make_index.sh) che per [make_index_without_stats.sh](./make_index_without_stats.sh), entrambi richiedono [attuale.txt](attuale.txt):
-- [make_index.sh](./make_index.sh): Genera la index scaricando le stats ([make_stats.sh](make_stats.sh)), quindi ne mostra i link sulla index come in [questo link](http://streamingcommunity.accol.li)
-- [make_index_without_stats.sh](./make_index_without_stats.sh): Genera la index senza scaricare e mostrare le stats +[make_index.sh](./make_index.sh) Genera una index come in [questo link](http://streamingcommunity.accol.li)
+ ```bash # (richiede "attuale.txt") diff --git a/deprecati/README.md b/deprecati/README.md new file mode 100644 index 0000000..6e20c67 --- /dev/null +++ b/deprecati/README.md @@ -0,0 +1,44 @@ +#### 1. Genera una pagina html con il link aggiornato di streamingcommunity + +Le istruzioni di installazione/settaggio sono uguali sia per [make_index.sh](./make_index.sh) che per [make_index_without_stats.sh](./make_index_without_stats.sh), entrambi richiedono [attuale.txt](attuale.txt):
+- [make_index.sh](./make_index.sh): Genera la index scaricando le stats ([make_stats.sh](make_stats.sh)), quindi ne mostra i link sulla index come in [questo link](http://streamingcommunity.accol.li)
+- [make_index_without_stats.sh](./make_index_without_stats.sh): Genera la index senza scaricare e mostrare le stats +```bash +# (richiede "attuale.txt") + +# Setta la variabile "PWD_SC" in testa allo script o lasciala con "PWD" per provare in locale +nano make_index.sh + +# Avvia lo script manualmente +./make_index.sh + +# oppure mettilo in cron +0 0 * * * /path/to/make_index.sh +``` +Se vuoi pubblicarla sul web: aggiusta la variabile PWD_SC in testa allo script [make_index.sh](./make_index.sh), decommenta i comandi in fondo allo stesso script e metti la tua cartella (quella che hai messo in PWD_SC) dietro a un reverse proxy + +
+ +#### 2. Crea un feed rss con il link: +```bash +# (richiede "attuale.txt") + +# Setta la variabile "PWD_SC" in testa allo script o lasciala con "PWD" per provare in locale +nano rss_generator.sh + +# Avvia lo manualmente +./rss_generator.sh + +# oppure mettilo in cron +0 0 * * * /path/to/rss_generator.sh +``` +
+ +#### 3. Se vuoi semplicemente sapere qual'è il link giusto aggiornato: +```bash +# (richiede "attuale.txt") + +# esgui lo script: +./show_link.sh +``` + diff --git a/make_index_without_stats.sh b/deprecati/make_index.sh similarity index 89% rename from make_index_without_stats.sh rename to deprecati/make_index.sh index 7d93dac..7e201ac 100755 --- a/make_index_without_stats.sh +++ b/deprecati/make_index.sh @@ -64,17 +64,18 @@ cat <<- _EOF > $PWD_SC/index.html height: 200wj; } - h1 { font-size: 36px; /* Default size */ } + @media (max-width: 480px) { h1 { font-size: 17px; /* Size mobile phones */ } } + @media (max-width: 480px) { h3 { font-size: 15px; @@ -83,10 +84,8 @@ cat <<- _EOF > $PWD_SC/index.html } -
-

- _EOF +# Genera le stats scrapate da streaming community sui client più altre cose da capire +./make_stats.sh + # Da i permessi alla cartella (decommentare se hostato) #chown -R root:root $PWD_SC; echo "la cartella $PWD_SC è di root" #chmod +x $PWD_SC ; echo "permetto di leggere dentro a $PWD_SC" #chmod 740 $PWD_SC/*; echo "reset permessi per tutti i file dentro a $PWD_SC" #chown -R www-data:www-data $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.html; echo "do i permessi agli html dentro a $PWD_SC" +#chown -R www-data:www-data $PWD_SC/*.json; chmod -R 744 $PWD_SC/*.json; echo "do i permessi ai json dentro a $PWD_SC" #chown -R www-data:www-data $PWD_SC/*.xml; chmod -R 744 $PWD_SC/*.xml; echo "do i permessi agli xml dentro a $PWD_SC" #chown root:root ./*.sh; chmod 740 ./*.sh; echo "do i permesi agli sh dentro $PWD_SC" #chown www-data:www-data ./splash.gif; chmod 740 ./splash.gif; echo "do i permesi alla gif splash" diff --git a/make_stats.sh b/deprecati/make_stats.sh similarity index 100% rename from make_stats.sh rename to deprecati/make_stats.sh diff --git a/make_index.sh b/make_index.sh index 7e201ac..7d93dac 100755 --- a/make_index.sh +++ b/make_index.sh @@ -64,18 +64,17 @@ cat <<- _EOF > $PWD_SC/index.html height: 200wj; } + h1 { font-size: 36px; /* Default size */ } - @media (max-width: 480px) { h1 { font-size: 17px; /* Size mobile phones */ } } - @media (max-width: 480px) { h3 { font-size: 15px; @@ -84,8 +83,10 @@ cat <<- _EOF > $PWD_SC/index.html } +
+

+ _EOF -# Genera le stats scrapate da streaming community sui client più altre cose da capire -./make_stats.sh - # Da i permessi alla cartella (decommentare se hostato) #chown -R root:root $PWD_SC; echo "la cartella $PWD_SC è di root" #chmod +x $PWD_SC ; echo "permetto di leggere dentro a $PWD_SC" #chmod 740 $PWD_SC/*; echo "reset permessi per tutti i file dentro a $PWD_SC" #chown -R www-data:www-data $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.html; echo "do i permessi agli html dentro a $PWD_SC" -#chown -R www-data:www-data $PWD_SC/*.json; chmod -R 744 $PWD_SC/*.json; echo "do i permessi ai json dentro a $PWD_SC" #chown -R www-data:www-data $PWD_SC/*.xml; chmod -R 744 $PWD_SC/*.xml; echo "do i permessi agli xml dentro a $PWD_SC" #chown root:root ./*.sh; chmod 740 ./*.sh; echo "do i permesi agli sh dentro $PWD_SC" #chown www-data:www-data ./splash.gif; chmod 740 ./splash.gif; echo "do i permesi alla gif splash" diff --git a/rss_gerator.sh b/rss_gerator.sh index 415d02f..d74fb02 100755 --- a/rss_gerator.sh +++ b/rss_gerator.sh @@ -36,7 +36,6 @@ _EOF #chmod +x $PWD_SC ; echo "permetto di leggere dentro a $PWD_SC" #chmod 740 $PWD_SC/*; echo "reset permessi per tutti i file dentro a $PWD_SC" #chown -R www-data:www-data $PWD_SC/*.html; chmod -R 744 $PWD_SC/*.html; echo "do i permessi agli html dentro a $PWD_SC" -#chown -R www-data:www-data $PWD_SC/*.json; chmod -R 744 $PWD_SC/*.json; echo "do i permessi ai json dentro a $PWD_SC" #chown -R www-data:www-data $PWD_SC/*.xml; chmod -R 744 $PWD_SC/*.xml; echo "do i permessi agli xml dentro a $PWD_SC" #chown root:root ./*.sh; chmod 740 ./*.sh; echo "do i permesi agli sh dentro $PWD_SC" #chown www-data:www-data ./splash.gif; chmod 740 ./splash.gif; echo "do i permesi alla gif splash"