Commit 8edda5d3 authored by Steve Illichevskiy's avatar Steve Illichevskiy

Remove install scripts

Prepere for upstart script
parent 0fb69739
#!/bin/sh
mv /var/lib/telegram-daemon/test.lua /var/lib/telegram-daemon/script-achat.lua
\ No newline at end of file
#!/bin/sh
deluser telegramd
rm -r /etc/telegram-daemon/
rm -r /var/log/telegram-daemon/
rm -r /var/lib/telegram-daemon
rm /etc/init.d/telegram-daemon
\ No newline at end of file
#!/bin/sh
adduser --system --home /var/lib/telegram-daemon/ telegramd
usermod -c "Telegram Daemon" telegramd
usermod -d "/var/lib/telegram-daemon/" telegramd
usermod -g "telegramd" telegramd
usermod -s "/bin/false" telegramd
mkdir /etc/telegram-daemon/
mkdir /var/log/telegram-daemon/
touch /etc/telegram-daemon/telegram-daemon.achat.conf
echo "execute telegram-cli" > /etc/telegram-daemon/telegram-daemon.achat.conf
echo "-d" >> /etc/telegram-daemon/telegram-daemon.achat.conf
echo "-vvvv" >> /etc/telegram-daemon/telegram-daemon.achat.conf
echo "-E" >> /etc/telegram-daemon/telegram-daemon.achat.conf
echo "-R" >> /etc/telegram-daemon/telegram-daemon.achat.conf
echo "-D" >> /etc/telegram-daemon/telegram-daemon.achat.conf
echo "-C" >> /etc/telegram-daemon/telegram-daemon.achat.conf
echo "-P 2391" >> /etc/telegram-daemon/telegram-daemon.achat.conf
touch /var/lib/telegram-daemon/script-achat.lua
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment