#!/bin/bash

#
# prepare /tmpfs dir in DEPLOY
#

if [ ! -z "${DEPLOY_TMPFS_SPACE_LIMIT}" ]; then
    if [ ! -d /tmpfs ]; then
        mkdir /tmpfs
    fi
    portoctl vcreate /tmpfs backend=tmpfs space_limit="${DEPLOY_TMPFS_SPACE_LIMIT}M"
fi
