#!/usr/bin/env bash

mkdir -p /opt/geminabox/mount

# mount the nfs volume for package repository and database
echo -e "$GIB_EFS_MOUNT_URL:/ /opt/geminabox/mount nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noauto 0 0" >> /etc/fstab
mount /opt/geminabox/mount

# go!
GIB_DATA_PATH=/opt/geminabox/mount rackup --host 0.0.0.0
