diff --git a/upgrade.sh b/upgrade.sh index c3d9fa4..35c1829 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -56,8 +56,14 @@ if [[ $storage_type == "oracle" ]]; then fi #Running script to generate program selector config file +access_type=$(awk ''/^access_type:' /{ if ($2 !~ /#.*/) {print $2}}' config_files/upgradation_config.yml) +if [[ $access_type == "VSK" ]]; then chmod u+x shell_scripts/program_selector.sh . "shell_scripts/program_selector.sh" +else + chmod u+x shell_scripts/national_program_selector.sh + . "shell_scripts/national_program_selector.sh" +fi #Running script to clone all the required repositories chmod u+x shell_scripts/repository_clone.sh