diff --git a/entrypoint.sh b/entrypoint.sh index 67f842f..16bc7c1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,13 @@ echo "hello your setup is $INPUT_PHP & $INPUT_PROCESS & $INPUT_OVERRIDE_SETTINGS" +if [ $INPUT_OVERRIDE_SETTINGS = 1 ] +then + [ -d config ] && ls ./config/* + [ -d scripts ] && ls ./scripts/* + [ -d config ] && cp -rf ./config/* /opt/config/ + [ -d scripts ] && cp -rf ./scripts/* /opt/scripts/ +fi bash /opt/config/utils/project-format-checker.sh @@ -28,13 +35,5 @@ fi # for compatibility with older versions cp /opt/scripts/deploy-production.sh /opt/scripts/deploy-prod.sh -if [ $INPUT_OVERRIDE_SETTINGS = 1 ] -then - [ -d config ] && ls ./config/* - [ -d scripts ] && ls ./scripts/* - [ -d config ] && cp -rf ./config/* /opt/config/ - [ -d scripts ] && cp -rf ./scripts/* /opt/scripts/ - bash /opt/scripts/${INPUT_PROCESS}.sh -else - bash /opt/scripts/${INPUT_PROCESS}.sh -fi \ No newline at end of file + +bash /opt/scripts/${INPUT_PROCESS}.sh