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!"