commit 6d27671cfb12cfe39777f1cbe9920bbb6220f1ea Author: scossa Date: Fri Aug 30 10:36:22 2024 +0200 streamingcommunity diff --git a/README.md b/README.md new file mode 100644 index 0000000..6346ef1 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +### Genera una pagina html con il link aggiornato di streamingcommunity + +Avvia lo script manualmente
+./update_link.sh
+ +o mettilo in cron
+0 0 * * * /path/to/update_link.sh
+ +per generare la pagina index.html contente il link giusto
+ diff --git a/index.html b/index.html new file mode 100644 index 0000000..0e4d039 --- /dev/null +++ b/index.html @@ -0,0 +1,82 @@ + + + + + + + StreamingCommunity Link Giusto + + + + +
+ +
+ + + +

+ + + +

+ + + +
+ + + \ No newline at end of file diff --git a/script_link.sh b/script_link.sh new file mode 100755 index 0000000..bf6795b --- /dev/null +++ b/script_link.sh @@ -0,0 +1 @@ +giusto=$(curl -L https://www.giardiniblog.it/streamingcommunity-nuovo-link/ | grep -oP '(?<=).*?(?=

)' | grep -oP 'https://streamingcommunity.*') ; echo -e "\n$giusto\n" diff --git a/splash.gif b/splash.gif new file mode 100644 index 0000000..2575b97 Binary files /dev/null and b/splash.gif differ diff --git a/update_link.sh b/update_link.sh new file mode 100755 index 0000000..7c1e677 --- /dev/null +++ b/update_link.sh @@ -0,0 +1,95 @@ +#!/bin/bash + +giusto=$(curl -L https://www.giardiniblog.it/streamingcommunity-nuovo-link/ | grep -oP '(?<=).*?(?=

)' | grep -oP 'https://streamingcommunity.*') + +formatted="${giusto#*://}" +formatted="${formatted%/}" + +cat <<- _EOF > /var/www/html/scommunity/index.html + + + + + + + StreamingCommunity Link Giusto + + + + +
+ +

+ + + +

+ + + + + +

+ + + +

+ +
+ + + +_EOF + +sudo chown -R www-data:www-data /var/www/html/scommunity ; sudo chmod -R 755 /var/www/html/scommunity \ No newline at end of file