Makelore 2.0 initial clean snapshot
This commit is contained in:
26
scripts/linux/after-remove.sh
Normal file
26
scripts/linux/after-remove.sh
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Post-removal script for Makelore on Linux
|
||||
|
||||
set -e
|
||||
|
||||
# Remove symbolic links
|
||||
rm -f /usr/local/bin/niancode 2>/dev/null || true
|
||||
|
||||
# Update desktop database
|
||||
if command -v update-desktop-database &> /dev/null; then
|
||||
update-desktop-database -q /usr/share/applications || true
|
||||
fi
|
||||
|
||||
# Update icon cache
|
||||
if command -v gtk-update-icon-cache &> /dev/null; then
|
||||
gtk-update-icon-cache -q /usr/share/icons/hicolor || true
|
||||
fi
|
||||
|
||||
# Remove AppArmor profile
|
||||
APPARMOR_PROFILE_TARGET='/etc/apparmor.d/niancode'
|
||||
if [ -f "$APPARMOR_PROFILE_TARGET" ]; then
|
||||
rm -f "$APPARMOR_PROFILE_TARGET"
|
||||
fi
|
||||
|
||||
echo "Makelore has been removed."
|
||||
Reference in New Issue
Block a user