Remove install scripts
Prepere for upstart script
This commit is contained in:
parent
0fb69739f9
commit
8edda5d31c
2
debian/postinst
vendored
2
debian/postinst
vendored
@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
mv /var/lib/telegram-daemon/test.lua /var/lib/telegram-daemon/script-achat.lua
|
6
debian/postrm
vendored
6
debian/postrm
vendored
@ -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
19
debian/preinst
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user