Files
StreamingCommunity/README.md

35 lines
953 B
Markdown
Raw Normal View History

2025-01-13 18:39:57 +01:00
#### 1. Genera una pagina html con il link aggiornato di streamingcommunity (richiede "attuale.txt"):
2024-08-30 10:36:22 +02:00
2025-01-13 18:01:25 +01:00
```
2025-01-13 18:36:29 +01:00
# Setta la variabile "PWD_SC" in testa allo script o lasciala con "PWD" per provarla in locale
2025-01-13 18:58:51 +01:00
nano make_index.sh
2025-01-13 18:05:30 +01:00
2025-01-13 18:36:29 +01:00
# Avvia lo script manualmente
2025-01-13 18:58:51 +01:00
./make_index.sh
2025-01-13 18:05:30 +01:00
2025-01-13 18:36:29 +01:00
# o mettilo in cron
2025-01-13 18:58:51 +01:00
0 0 * * * /path/to/make_index.sh
2025-01-13 18:36:29 +01:00
```
2025-01-13 18:39:33 +01:00
##### 1.1 Se vuoi pubblicarla sul web, mettila dietro un reverseproxy e dai i permessi alla cartella contenente lo script:
2025-01-13 18:36:29 +01:00
```
2025-01-13 18:39:33 +01:00
# il seguente comando è anche in fondo allo script:
2025-01-13 18:01:25 +01:00
sudo chown -R www-data:www-data <path_to_streamingcommunity_directory> ; sudo chmod -R 755 <path_to_streamingcommunity_directory>
```
2025-01-13 18:19:28 +01:00
2025-01-13 18:39:33 +01:00
<br>
2025-01-13 18:36:29 +01:00
2025-01-13 18:58:51 +01:00
#### 2. Se vuoi semplicemente sapere qual'è il link giusto aggiornato esegui "show_link.sh" (richiede "attuale.txt"):
2025-01-13 18:19:28 +01:00
```
2025-01-13 18:58:51 +01:00
./show_link.sh
2025-01-18 20:25:09 +01:00
```
<br>
#### 3. Crea un feed rss (richiede "attuale.txt"):
```
# Avvialo manualmente
./rss_generator.sh
# o mettilo in cron
0 0 * * * /path/to/rss_generator.sh
2025-01-14 00:47:37 +01:00
```