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 }