Finalizes Lts/Tests migration and RPM to DEB packaging port
This commit is contained in:
31 files changed
+1144
-540
No files matched your search
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# postinst script for legatus-qt6-sv
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
# Update linker cache
|
||||
ldconfig
|
||||
|
||||
# Create log directory if it doesn't exist
|
||||
LOGDIR="/opt/legatus/sv/../LOG"
|
||||
if [ ! -e "${LOGDIR}" ]; then
|
||||
mkdir -p "${LOGDIR}"
|
||||
chown root:root "${LOGDIR}"
|
||||
chmod 1777 "${LOGDIR}"
|
||||
fi
|
||||
|
||||
# Enable systemd service if it exists
|
||||
if [ -f "/etc/systemd/system/lts_sv.service" ]; then
|
||||
systemctl daemon-reload
|
||||
systemctl enable lts_sv.service 2>/dev/null || true
|
||||
fi
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user