
drawgantt_setup() {

    install_conffile \
        ${SHAREDIR}/drawgantt.conf \
        ${OARCONFDIR}/drawgantt.conf \
        0600 \
        ${WWWUSER}

    if [ ! -d "${OARHOMEDIR}/drawgantt-files" ]; then
       mkdir -p ${OARHOMEDIR}/drawgantt-files
       set_rights ${OARHOMEDIR}/drawgantt-files 0755
    fi

    if [ ! -e "${OARHOMEDIR}/drawgantt-files/js" ]; then
        ln -sf ${WWWDIR}/drawgantt-files/js ${OARHOMEDIR}/drawgantt-files/js
    fi
    if [ ! -e "${OARHOMEDIR}/drawgantt-files/Icons" ]; then
        ln -sf ${WWWDIR}/drawgantt-files/Icons ${OARHOMEDIR}/drawgantt-files/Icons
    fi

    if [ ! -d "${OARHOMEDIR}/drawgantt-files/cache" ]; then
       mkdir -p ${OARHOMEDIR}/drawgantt-files/cache
       set_rights ${OARHOMEDIR}/drawgantt-files/cache 0755 ${WWWUSER}
    fi
}
