Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (15 sloc) 622 Bytes
#!/bin/sh
# Run this script once to install MLcomp.
. ./rc
# We need to create the root directory for programs/datasets/etc.
mkdir -p $MLCOMP_BASE_PATH
mkdir -p $MLCOMP_BASE_PATH/programs
mkdir -p $MLCOMP_BASE_PATH/datasets
mkdir -p $MLCOMP_BASE_PATH/runs
mkdir -p $MLCOMP_BASE_PATH/download
# Create the database.
echo "Do you know your mysql root password? It is necessary to creat the mlcomp_development db, and to grant permissions to it. You should now be prompted for your password."
cat <<EOF | mysql -u root -p
create database mlcomp_development;
grant all on mlcomp_development.* to rails_user@localhost;
EOF