diff --git a/rss_gerator.sh b/rss_gerator.sh new file mode 100755 index 0000000..8c5a5a1 --- /dev/null +++ b/rss_gerator.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# SETTARE QUESTA VARIABILE CON IL PERCORSO GIUSTO: +PWD_SC="$PWD" + +# Formatta il link e lo stampa +formatted="https://$(cat "$PWD_SC/attuale.txt")" +echo "$formatted" #per debug + +data=$(date +%Y-%m-%d) + +# Crea pagina "index.html" +cat <<- _EOF > $PWD_SC/rss.xml + + + +Fanculo Netflix +$formatted +Link sempre aggiornato +$data +it-IT + +$formatted +$formatted +$date +$formatted + + + + +_EOF + +# Da i permessi alla cartella +#sudo chown -R www-data:www-data $PWD_SC ; sudo chmod -R 755 $PWD_SC \ No newline at end of file