diff --git a/build b/build index 142b086..7eabd32 100755 --- a/build +++ b/build @@ -86,6 +86,18 @@ function task_setup { composer install --no-dev; task_end $?; + if [ ! -d "./data" ]; then + task_begin "Setting up initial data folder"; + mkdir "./data"; chmod 0700 "./data"; + + echo -e "# -------[ Custom Settings File - Last updated $(date) ]-------" >"./data/settings.toml"; + echo -e '[database]\nusername = "INSERT_DATABASE_USERNAME_HERE"\npassword = "INSERT_DATABASE_PASSWORD_HERE";' >>"./data/settings.toml"; + + echo -e "${HC}Don't forget to edit './data/settings.toml' to specify the database username and password${RS}"; + + task_end $?; + fi + stage_end $?; }