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

Some changes for daemon mode

parent f159bd95
...@@ -12,3 +12,4 @@ objs/ ...@@ -12,3 +12,4 @@ objs/
dep/ dep/
auto/ auto/
libs/ libs/
debian/telegram-cli*
bin/telegram-cli usr/bin bin/telegram-cli usr/bin
bin/telegram-cli usr/share/telegram-daemon/bin bin/telegram-cli usr/share/telegram-daemon/bin
start-telegram-daemon /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 server.pub etc/telegram-cli
\ No newline at end of file
#!/bin/sh
mv /var/lib/telegram-daemon/test.lua /var/lib/telegram-daemon/script-achat.lua
\ No newline at end of file
...@@ -2,3 +2,5 @@ ...@@ -2,3 +2,5 @@
deluser telegramd deluser telegramd
rm -r /etc/telegram-daemon/ rm -r /etc/telegram-daemon/
rm -r /var/log/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
...@@ -15,4 +15,5 @@ echo "-E" >> /etc/telegram-daemon/telegram-daemon.achat.conf ...@@ -15,4 +15,5 @@ echo "-E" >> /etc/telegram-daemon/telegram-daemon.achat.conf
echo "-R" >> /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 "-D" >> /etc/telegram-daemon/telegram-daemon.achat.conf
echo "-C" >> /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
\ No newline at end of file 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