diff options
Diffstat (limited to 'raveos-cosmic-theme/raveos-cosmic-theme.install')
| -rw-r--r-- | raveos-cosmic-theme/raveos-cosmic-theme.install | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/raveos-cosmic-theme/raveos-cosmic-theme.install b/raveos-cosmic-theme/raveos-cosmic-theme.install index 876a411..ceef58a 100644 --- a/raveos-cosmic-theme/raveos-cosmic-theme.install +++ b/raveos-cosmic-theme/raveos-cosmic-theme.install @@ -1,7 +1,24 @@ +_sddm_src="/usr/share/raveos/cosmic-theme/theme-data/sddm/sddm.conf" +_sddm_dst="/etc/sddm.conf.d/raveos-theme.conf" + +pre_install() { + rm -f "$_sddm_dst" +} + +pre_upgrade() { + rm -f "$_sddm_dst" +} + post_install() { - : + mkdir -p /etc/sddm.conf.d + install -Dm644 "$_sddm_src" "$_sddm_dst" } post_upgrade() { - : + mkdir -p /etc/sddm.conf.d + install -Dm644 "$_sddm_src" "$_sddm_dst" +} + +post_remove() { + rm -f "$_sddm_dst" } |