This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This script updates all of your docker compose images set in standard dir. | |
| # Export paths for running into a cronjob | |
| PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
| for dir in /opt/*/; do | |
| if [ -f "${dir}docker-compose.yml" ]; then | |
| compose="${dir}docker-compose.yml" | |
| elif [ -f "${dir}docker-compose.yaml" ]; then |
OlderNewer