blob: 963e9b888b4c926ba631e5ef6edaf68ecbd70d8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
_enable_apply_service() {
local payload="/usr/share/raveos/cosmic-theme/theme-data"
if [ -f "${payload}/background" ]; then
install -Dm644 "${payload}/background" /usr/share/backgrounds/raveos/raveos-main-bg.jpeg 2>/dev/null || true
fi
if [ -f "${payload}/profile.d/raveos-fastfetch.sh" ]; then
install -Dm755 "${payload}/profile.d/raveos-fastfetch.sh" /etc/profile.d/raveos-fastfetch.sh 2>/dev/null || true
fi
if command -v systemctl >/dev/null 2>&1; then
systemctl enable raveos-cosmic-theme-apply.service >/dev/null 2>&1 || true
fi
}
post_install() {
_enable_apply_service
}
post_upgrade() {
_enable_apply_service
}
|