#!/bin/bash

set -e

mkdir -p \
    /jail/zim/freecodecamp \
    /jail/zim/gutenberg \
    /jail/zim/ifixit \
    /jail/zim/devdocs \
    /jail/zim/libretexts \
    /jail/zim/mindtouch \
    /jail/zim/mooc \
    /jail/zim/other \
    /jail/zim/phet \
    /jail/zim/stack_exchange \
    /jail/zim/ted \
    /jail/zim/videos \
    /jail/zim/vikidia \
    /jail/zim/wikibooks \
    /jail/zim/wikihow \
    /jail/zim/wikinews \
    /jail/zim/wikipedia \
    /jail/zim/wikiquote \
    /jail/zim/wikisource \
    /jail/zim/wikiversity \
    /jail/zim/wikivoyage \
    /jail/zim/wiktionary \
    /jail/zim/zimit

chmod 777 \
    /jail/zim/freecodecamp \
    /jail/zim/gutenberg \
    /jail/zim/ifixit \
    /jail/zim/devdocs \
    /jail/zim/libretexts \
    /jail/zim/mindtouch \
    /jail/zim/mooc \
    /jail/zim/other \
    /jail/zim/phet \
    /jail/zim/stack_exchange \
    /jail/zim/ted \
    /jail/zim/videos \
    /jail/zim/vikidia \
    /jail/zim/wikibooks \
    /jail/zim/wikihow \
    /jail/zim/wikinews \
    /jail/zim/wikipedia \
    /jail/zim/wikiquote \
    /jail/zim/wikisource \
    /jail/zim/wikiversity \
    /jail/zim/wikivoyage \
    /jail/zim/wiktionary \
    /jail/zim/zimit