mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-05 21:50:38 +00:00
package scripts for DEBIAN
This commit is contained in:
parent
26372c4ab3
commit
ab416837cf
4 changed files with 94 additions and 0 deletions
24
DEBIAN/postinst
Executable file
24
DEBIAN/postinst
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$1" != "configure" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Touch and set permisions of files
|
||||
if [ -z "$2" ]; then
|
||||
if [ -d /var/lib/signal-cli ]; then
|
||||
chown signal-cli:signal-cli /var/lib/signal-cli
|
||||
fi
|
||||
|
||||
if [ -d /opt/signal ]; then
|
||||
chown -R signal-cli:signal-cli /opt/signal
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
systemctl enable signal.service
|
||||
systemctl reload dbus.service
|
||||
service signal start
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue