Skip to content

Commit

Permalink
add mdata-setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
drscream committed Jul 24, 2014
1 parent 775d360 commit f148bd8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions copy/opt/core/bin/mdata-setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
# source all files from /opt/core/var/mdata-setup/includes/*.sh
# we recommend a order by NUMBER-scriptname.sh

PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
export PATH

# Set basedir for includes
MDATA_SETUP_INC='/opt/core/var/mdata-setup/includes'

if [ -d "${MDATA_SETUP_INC}" ]; then
for FILE in ${MDATA_SETUP_INC}/*.sh; do
if [ -r "${FILE}" ]; then
source ${FILE}
fi
done
fi

0 comments on commit f148bd8

Please sign in to comment.