Some changes for daemon mode
This commit is contained in:
parent
f159bd954a
commit
8a71a3cb51
1
.gitignore
vendored
1
.gitignore
vendored
@ -12,3 +12,4 @@ objs/
|
||||
dep/
|
||||
auto/
|
||||
libs/
|
||||
debian/telegram-cli*
|
||||
|
3
debian/install
vendored
3
debian/install
vendored
@ -1,5 +1,6 @@
|
||||
bin/telegram-cli usr/bin
|
||||
bin/telegram-cli usr/share/telegram-daemon/bin
|
||||
start-telegram-daemon /usr/share/telegram-daemon/bin
|
||||
test.lua /var/lib/telegram-daemon/
|
||||
test.lua var/lib/telegram-daemon/
|
||||
telegram-daemon etc/init.d
|
||||
server.pub etc/telegram-cli
|
2
debian/postinst
vendored
Normal file
2
debian/postinst
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
mv /var/lib/telegram-daemon/test.lua /var/lib/telegram-daemon/script-achat.lua
|
2
debian/postrm
vendored
2
debian/postrm
vendored
@ -2,3 +2,5 @@
|
||||
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
|
3
debian/preinst
vendored
3
debian/preinst
vendored
@ -15,4 +15,5 @@ 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
|
||||
echo "-P 2391" >> /etc/telegram-daemon/telegram-daemon.achat.conf
|
||||
touch /var/lib/telegram-daemon/script-achat.lua
|
Loading…
x
Reference in New Issue
Block a user