summarylogtreecommitdiffstats
path: root/subconverter.install
blob: 3b7cf5293d0b0c4bbefe47f44a66c0a00c3bebb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
    CACHE_DIR="/opt/subconverter/cache"
    # Create cache directory
    if ! [[ -d "${CACHE_DIR}" ]]
    then
        mkdir "${CACHE_DIR}"
    fi

    setfacl -m u:subconverter:rwx "${CACHE_DIR}"
}

post_remove() {
    rm -rf /opt/subconverter
}