Skip to content

Commit

Permalink
fix overrider
Browse files Browse the repository at this point in the history
  • Loading branch information
seyuf committed Apr 23, 2024
1 parent 825f572 commit f8fad7e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

bash /opt/scripts/${INPUT_PROCESS}.sh

0 comments on commit f8fad7e

Please sign in to comment.