diff --git a/.gitignore b/.gitignore index edd64af..1c97a32 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ objs/ dep/ auto/ libs/ +debian/telegram-cli* diff --git a/debian/install b/debian/install index 1f080e9..ad1d89c 100644 --- a/debian/install +++ b/debian/install @@ -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 \ No newline at end of file diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..9038d07 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,2 @@ +#!/bin/sh +mv /var/lib/telegram-daemon/test.lua /var/lib/telegram-daemon/script-achat.lua \ No newline at end of file diff --git a/debian/postrm b/debian/postrm index aad36bf..cf633e1 100644 --- a/debian/postrm +++ b/debian/postrm @@ -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 \ No newline at end of file diff --git a/debian/preinst b/debian/preinst index ef269ee..16fc5d3 100644 --- a/debian/preinst +++ b/debian/preinst @@ -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 \ No newline at end of file +echo "-P 2391" >> /etc/telegram-daemon/telegram-daemon.achat.conf +touch /var/lib/telegram-daemon/script-achat.lua \ No newline at end of file