From cd15bd464da1cb1c8a2871db689407efbbf72737 Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Mon, 3 May 2021 00:45:51 +0200 Subject: [PATCH] Start and enable lighttpd during installation --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index e51d195..8a06701 100755 --- a/install.sh +++ b/install.sh @@ -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!"