rss generator update

This commit is contained in:
2025-01-19 00:58:54 +01:00
parent d366f327c0
commit 95ec6d1824
5 changed files with 23 additions and 24 deletions

View File

@@ -1,15 +1,16 @@
#!/bin/bash
# SETTARE QUESTA VARIABILE CON IL PERCORSO GIUSTO:
# Es: PWD_SC="/var/www/html/streamingcommunity"
PWD_SC="$PWD"
# Formatta il link e lo stampa
formatted="https://$(cat "$PWD_SC/attuale.txt")"
echo "$formatted" #per debug
echo "$formatted"
data=$(date +%Y-%m-%d)
# Crea pagina "index.html"
# Crea pagina "rss.xml"
cat <<- _EOF > $PWD_SC/rss.xml
<rss version="2.0">
@@ -31,4 +32,4 @@ cat <<- _EOF > $PWD_SC/rss.xml
_EOF
# Da i permessi alla cartella
#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