Start and enable lighttpd during installation

This commit is contained in:
Michael De Roover 2021-05-03 00:45:51 +02:00
parent 03db8e30e3
commit cd15bd464d
Signed by: vim
GPG Key ID: 075496E232CE04CB

View File

@ -33,10 +33,16 @@ mkdir /var/www/konata
rand=$RANDOM
install -m755 konata.sh /usr/local/bin/konata
ln -s /usr/local/bin/konata /var/www/konata/$rand.sh
install -m644 index.html /var/www/konata/index.html
echo "Requesting Telegram to use our webhook..."
curl -X POST "https://api.telegram.org/bot$token/setWebhook" \
-d "url=$domain/$rand.sh"
echo ""
echo "The webhook has been set to $domain/$rand.sh."
echo "Starting lighttpd..."
service lighttpd start
rc-update add lighttpd default
echo "Started and enabled lighttpd."
echo "That should be everything! Enjoy your new bot!"