Skip to content

Commit

Permalink
fix: moving config initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ivopr committed Nov 25, 2022
1 parent 7c67965 commit f4c9062
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions scripts/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f4c9062

Please sign in to comment.