docker-scripts/teamcity-agent/run-services.sh

16 lines
235 B
Bash
Raw Normal View History

2019-09-14 22:28:02 +03:00
#!/bin/bash
echo '/run-services.sh'
for entry in /services/*.sh
do
if [[ -f "$entry" ]]; then
echo "$entry"
[[ ! -x "$entry" ]] && (chmod +x "$entry"; sync)
"$entry"
fi
done
echo '/run-agent.sh'
exec '/run-agent.sh'