Remove install scripts

Prepere for upstart script
This commit is contained in:
Steve Illichevskiy 2014-10-05 11:16:29 +04:00
parent 0fb69739f9
commit 8edda5d31c
3 changed files with 0 additions and 27 deletions

2
debian/postinst vendored
View File

@ -1,2 +0,0 @@
#!/bin/sh
mv /var/lib/telegram-daemon/test.lua /var/lib/telegram-daemon/script-achat.lua

6
debian/postrm vendored
View File

@ -1,6 +0,0 @@
#!/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

19
debian/preinst vendored
View File

@ -1,19 +0,0 @@
#!/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