From 44088ace29f13f3e45d735ddfb7222256b02089d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCsser=20Jonas?= Date: Wed, 24 May 2017 15:04:22 +0200 Subject: [PATCH] actual thing --- setup/install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/setup/install.sh b/setup/install.sh index 8660994..c3a30e8 100755 --- a/setup/install.sh +++ b/setup/install.sh @@ -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