blob: f46263546eda8d655135b78ae4df96c432f6973e (
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
|
# From deb control script postinst
post_install() {
systemctl enable /etc/systemd/system/run-wine.mount
systemd-tmpfiles --create /usr/lib/tmpfiles.d/run-wine.conf 2>/dev/null
# systemd-mount /etc/systemd/system/run-wine.mount
# Resolve: fchmod() of /run/wine failed: Read-only file system
# mount /usr/share/wine/wine.squashfs /run/wine
chmod a+x /usr/bin/ukylin-wine
chmod a+x /usr/bin/wine-mount
}
# From deb control scrip prerm
pre_remove() {
# Remove all processes before uninstall
lsof /run/wine 2>/dev/null | cut -d ' ' -f 2 | uniq | xargs -i kill -9 {} | :
umount /run/wine | :
systemctl disable run-wine.mount | :
}
pre_upgrade() {
pre_remove
}
post_upgrade() {
post_install
}
|