Add full Oculog codebase

This commit is contained in:
shump
2026-02-12 14:52:37 -06:00
parent 49d8d01643
commit 5c6a17abf3
68 changed files with 34218 additions and 0 deletions

26
clients/ubuntu/debian/postrm Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
set -e
# Post-removal script
if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
# Stop and disable service
systemctl stop oculog-client.service 2>/dev/null || true
systemctl disable oculog-client.service 2>/dev/null || true
# Remove service file
rm -f /etc/systemd/system/oculog-client.service
systemctl daemon-reload
# Remove symlink
rm -f /usr/local/bin/oculog-client
if [ "$1" = "purge" ]; then
# Remove configuration and logs (optional - commented out to preserve data)
# rm -rf /etc/oculog
# rm -rf /var/log/oculog
# rm -rf /opt/oculog
echo "Configuration and logs preserved at /etc/oculog and /var/log/oculog"
fi
fi
exit 0