From f4c90627bf618861bfb8a06f777c70a78a76fc33 Mon Sep 17 00:00:00 2001 From: Ivo Date: Fri, 25 Nov 2022 15:34:56 -0400 Subject: [PATCH] fix: moving config initialization --- run | 4 +--- scripts/config.sh | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/run b/run index 6d2f3a74..6763a6b7 100755 --- a/run +++ b/run @@ -53,9 +53,7 @@ InstallService() { resp=${resp:-Y} if [ $resp = 'Y' ] || [ $resp = 'y' ]; then - cd scripts - source ./config.sh - cd .. + source ./scripts/config.sh source ./scripts/install.sh elif [ $resp = 'n' ]; then echo "Installation Cancelled by User" diff --git a/scripts/config.sh b/scripts/config.sh index e0d83ff7..f209076e 100755 --- a/scripts/config.sh +++ b/scripts/config.sh @@ -3,7 +3,7 @@ read -p "==> Administrator Email: " email read -p ">>>> VisualDynamics no-reply Email: " noreplyemail read -s -p ">>>> VisualDynamics no-reply Email password: " noreplyemailpassword -echo "#!bin/bash" >| ../config -echo "export VISUAL_DYNAMICS_ADMINISTRATOR_EMAIL=$email" >> ../config -echo "export VISUAL_DYNAMICS_NO_REPLY_EMAIL=$noreplyemail" >> ../config -echo "export VISUAL_DYNAMICS_NO_REPLY_EMAIL_PASSWORD=$noreplyemailpassword" >> ../config +echo "#!bin/bash" >| ./config +echo "export VISUAL_DYNAMICS_ADMINISTRATOR_EMAIL=$email" >> ./config +echo "export VISUAL_DYNAMICS_NO_REPLY_EMAIL=$noreplyemail" >> ./config +echo "export VISUAL_DYNAMICS_NO_REPLY_EMAIL_PASSWORD=$noreplyemailpassword" >> ./config