Skip to content

Commit

Permalink
actual thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hüsser Jonas committed May 24, 2017
1 parent f9b7dda commit 44088ac
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions setup/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@ find $workingdir -name '*.php' -print | cpio -pvdumB $wwwroot
read -p "Enter your mysql username: " username
read -s -p "Enter your mysql password: `echo $'\n> '`" password
read -p "Enter the mysql hostname: " hostname
read -p "Enter your app URL: " appurl
read -p "Enter URL to your mySQL REST API: " apiurl
read -p "Enter your reCAPTCHA site key: " sitekey
read -p "Enter your reCAPTCHA secret: " secretkey
read -p "Enter your app name: " appname
read -p "Enter your name: " appauthor
read -p "Enter app version: " appversion


sed -i -e "s/ENTER_YOUR_APP_URL/${appurl}/g" ${workingdir}/config.php
sed -i -e "s/ENTER_URL_TO_MYSQL_REST_API/${apiurl}/g" ${workingdir}/config.php
sed -i -e "s/ENTER_RECAPTCHA_SITE_KEY/${sitekey}/g" ${workingdir}/config.php
sed -i -e "s/ENTER_RECAPTCHA_SECRET_KEY/${secretkey}/g" ${workingdir}/config.php
sed -i -e "s/ENTER_APP_NAME/${appname}/g" ${workingdir}/config.php
sed -i -e "s/ENTER_APP_URL/${appurl}/g" ${workingdir}/config.php
sed -i -e "s/ENTER_APP_AUTHOR/${appauthor}/g" ${workingdir}/config.php
sed -i -e "s/ENTER_APP_LANGUGAGE/${appversion}/g" ${workingdir}/config.php

sed -i -e "s/myuser/${username}/g" ${workingdir}/setup/database_setup.sql
sed -i -e "s/myhost/${hostname}/g" ${workingdir}/setup/database_setup.sql
Expand Down

0 comments on commit 44088ac

Please sign in to comment.