This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
certs_path="/teddycloud/certs" | |
echo "-----------------------------------" | |
echo "Checking teddyCloud certificates..." | |
echo "-----------------------------------" | |
# check server certificates | |
files=( "ca.der" "ca-key.pem" "ca-root.pem" "ca-root.srl" "teddy-cert.pem" "teddy-key.csr" "teddy-key.pem" ) | |
echo -e "\nServer:" | |
echo "-------" | |
for file in "${files[@]}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# teddyCloud ip address | |
teddycloud_ip=192.168.178.127 | |
# query podcast feed | |
feed_content=$(curl -s "https://www.bitsundso.de/feed/") | |
# get latest episode | |
latest_feed_episode=$(echo "$feed_content" | sed -n -e '/<item>/,$p' | sed -n 's:.*<title>\(.*\)</title>.*:\1:p' | head -1 | sed 's/#/Folge /g') |
OlderNewer