blob: 691904f616b1a6cd4f1bde8eebcc35e414b0c5db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
post_install() {
systemctl daemon-reload
systemctl enable --now muse-hub.service
}
post_upgrade() {
post_install
}
pre_remove() {
# Kill the Muse Hub Client application
if pgrep -f Muse.Client.Linux; then killall Muse.Client.Linux; fi
# Disable the Muse Hub Helper Service
systemctl --no-reload disable --now muse-hub.service
}
post_remove() {
# Remove all service files if doing a full uninstall
if [ $1 = "remove" ]; then
rm -rf /srv/muse-hub
rm -rf /var/cache/muse-hub
rm -rf /tmp/muse-hub
rm -rf /var/lib/MuseSampler
rm -f /usr/lib/libMuseSamplerCoreLib.so
rm -rf "$HOME/.muse-hub"
fi
}
|