summarylogtreecommitdiffstats
path: root/zedpro.install
blob: dea57678f739b17f049828eb34714bd2c34e789a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
post_install() {
    xdg-icon-resource forceupdate --theme hicolor &> /dev/null
    ACCESS_FILES_PATH=/etc/primx/accessfiles
    LOGS_PATH=/var/log/zed
    ALL_USERS_REGISTRY=/etc/primx/users.registry
    update-mime-database /usr/share/mime/
    update-desktop-database
    mkdir -p ${ACCESS_FILES_PATH} ; chmod 1777 ${ACCESS_FILES_PATH}
    mkdir -p ${LOGS_PATH} ; chmod 1777 ${LOGS_PATH}
    touch $ALL_USERS_REGISTRY
    chmod 666 $ALL_USERS_REGISTRY
    update-desktop-database -q
}

post_upgrade() {
    post_install
}

post_remove() {
    xdg-icon-resource forceupdate --theme hicolor &> /dev/null
    update-desktop-database -q
}