diff options
author | Paolo Asperti <[email protected]> | 2023-01-18 18:19:12 +0100 |
---|---|---|
committer | Paolo Asperti <[email protected]> | 2023-01-18 18:19:12 +0100 |
commit | be2ce5c93b36a9e7cdf4f2a28729a78da2760894 (patch) | |
tree | 9f749e98c67a6aaad012a6ab4dd64c182c75a725 /debian | |
parent | f8936eff9377df95a7000142b1010fa8f63b301d (diff) | |
download | rustdesk-server-be2ce5c93b36a9e7cdf4f2a28729a78da2760894.tar.gz rustdesk-server-be2ce5c93b36a9e7cdf4f2a28729a78da2760894.zip |
fix logdir creation
Diffstat (limited to 'debian')
-rw-r--r-- | debian/rustdesk-server-hbbr.postinst | 4 | ||||
-rw-r--r-- | debian/rustdesk-server-hbbr.postrm | 2 | ||||
-rw-r--r-- | debian/rustdesk-server-hbbs.postinst | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/debian/rustdesk-server-hbbr.postinst b/debian/rustdesk-server-hbbr.postinst index f65944f..27fbbd5 100644 --- a/debian/rustdesk-server-hbbr.postinst +++ b/debian/rustdesk-server-hbbr.postinst @@ -3,6 +3,10 @@ set -e SERVICE=rustdesk-hbbr.service +if [ "$1" = "configure" ]; then + mkdir -p /var/log/rustdesk +fi + case "$1" in configure|abort-upgrade|abort-deconfigure|abort-remove) mkdir -p /var/lib/rustdesk-server/ diff --git a/debian/rustdesk-server-hbbr.postrm b/debian/rustdesk-server-hbbr.postrm index b5922d0..0420d84 100644 --- a/debian/rustdesk-server-hbbr.postrm +++ b/debian/rustdesk-server-hbbr.postrm @@ -6,7 +6,7 @@ SERVICE=rustdesk-hbbr.service systemctl --system daemon-reload >/dev/null || true if [ "$1" = "purge" ]; then - rm -rf /var/lib/rustdesk-server/ + rm -rf /var/lib/rustdesk-server/ /var/log/rustdesk/rustdesk-hbbr.* /var/log/rustdesk/rustdesk-hbbs.* deb-systemd-helper purge "${SERVICE}" >/dev/null || true deb-systemd-helper unmask "${SERVICE}" >/dev/null || true fi diff --git a/debian/rustdesk-server-hbbs.postinst b/debian/rustdesk-server-hbbs.postinst index b0004f2..df42813 100644 --- a/debian/rustdesk-server-hbbs.postinst +++ b/debian/rustdesk-server-hbbs.postinst @@ -3,6 +3,10 @@ set -e SERVICE=rustdesk-hbbs.service +if [ "$1" = "configure" ]; then + mkdir -p /var/log/rustdesk +fi + case "$1" in configure|abort-upgrade|abort-deconfigure|abort-remove) mkdir -p /var/lib/rustdesk-server/ |