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-19 00:58:54 +01:00
|
|
|
# Setta la variabile "PWD_SC" in testa allo script o lasciala con "PWD" per provare 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-19 00:58:54 +01:00
|
|
|
# oppure 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:36:29 +01:00
|
|
|
|
2025-01-19 00:58:54 +01:00
|
|
|
#### 2. Crea un feed rss con il link (richiede "attuale.txt"):
|
2025-01-18 20:25:09 +01:00
|
|
|
```
|
2025-01-19 00:58:54 +01:00
|
|
|
# Setta la variabile "PWD_SC" in testa allo script o lasciala con "PWD" per provare in locale
|
|
|
|
|
nano rss_generator.sh
|
2025-01-18 20:25:09 +01:00
|
|
|
|
2025-01-19 00:58:54 +01:00
|
|
|
# Avvia lo manualmente
|
|
|
|
|
./rss_generator.sh
|
|
|
|
|
|
|
|
|
|
# oppure mettilo in cron
|
|
|
|
|
0 0 * * * /path/to/rss_generator.sh
|
|
|
|
|
```
|
2025-01-18 20:25:09 +01:00
|
|
|
<br>
|
|
|
|
|
|
2025-01-19 00:58:54 +01:00
|
|
|
#### 3. Se vuoi semplicemente sapere qual'è il link giusto aggiornato esegui "show_link.sh" (richiede "attuale.txt"):
|
|
|
|
|
```
|
|
|
|
|
./show_link.sh
|
2025-01-18 20:25:09 +01:00
|
|
|
```
|
|
|
|
|
|