Start and enable lighttpd during installation
This commit is contained in:
parent
03db8e30e3
commit
cd15bd464d
@ -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!"
|
||||
|
Loading…
x
Reference in New Issue
Block a user