Update builder

This commit is contained in:
2025-12-13 17:53:16 +00:00
parent 99694bfa63
commit 0692b11335
8 changed files with 501 additions and 0 deletions

22
packaging/DEBIAN/prerm Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -e
# Pre-removal script for adastra-storage
echo "Adastra Storage: Pre-removal cleanup..."
# Stop and disable service
if systemctl is-active adastra-storage.service >/dev/null 2>&1; then
echo "Stopping adastra-storage service..."
systemctl stop adastra-storage.service
fi
if systemctl is-enabled adastra-storage.service >/dev/null 2>&1; then
echo "Disabling adastra-storage service..."
systemctl disable adastra-storage.service
fi
systemctl daemon-reload
exit 0