use executable permission to know if a service must be enabled
This commit is contained in:
parent
5bffcd541e
commit
9beb8ba543
14 changed files with 2 additions and 2 deletions
0
0/docker-compose.yml
Normal file → Executable file
0
0/docker-compose.yml
Normal file → Executable file
0
blog/docker-compose.blog.yml
Normal file → Executable file
0
blog/docker-compose.blog.yml
Normal file → Executable file
0
deluge/docker-compose.deluge.yml
Normal file → Executable file
0
deluge/docker-compose.deluge.yml
Normal file → Executable file
0
dokuwiki/docker-compose.dokuwiki.yml
Normal file → Executable file
0
dokuwiki/docker-compose.dokuwiki.yml
Normal file → Executable file
0
glances/docker-compose.glances.yml
Normal file → Executable file
0
glances/docker-compose.glances.yml
Normal file → Executable file
0
photo/docker-compose.photo.yml
Normal file → Executable file
0
photo/docker-compose.photo.yml
Normal file → Executable file
0
portainer/docker-compose.portainer.yml
Normal file → Executable file
0
portainer/docker-compose.portainer.yml
Normal file → Executable file
0
seafile/docker-compose.seafile.yml
Normal file → Executable file
0
seafile/docker-compose.seafile.yml
Normal file → Executable file
0
selfoss/docker-compose.selfoss.yml
Normal file → Executable file
0
selfoss/docker-compose.selfoss.yml
Normal file → Executable file
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
# override docker-compose
|
||||
# perm 444 ignores YAML files without other read-only permission
|
||||
# non executable YAML files are skipped (aka disabled services)
|
||||
docker-compose ()
|
||||
{
|
||||
/usr/local/bin/docker-compose $(find -name 'docker-compose*.yml' -type f -perm 444 -printf '%p\t%d\n' 2>/dev/null | sort -n -k2 | cut -f 1 | awk '{print "-f "$0}') $@
|
||||
/usr/local/bin/docker-compose $(find -name 'docker-compose*.yml' -type f -perm -u+x -printf '%p\t%d\n' 2>/dev/null | sort -n -k2 | cut -f 1 | awk '{print "-f "$0}') $@
|
||||
}
|
||||
|
||||
alias up='docker-compose --env-file /srv/hosting/.env up -d'
|
||||
|
|
0
shaarli/docker-compose.shaarli.yml
Normal file → Executable file
0
shaarli/docker-compose.shaarli.yml
Normal file → Executable file
0
traefik/docker-compose.traefik.yml
Normal file → Executable file
0
traefik/docker-compose.traefik.yml
Normal file → Executable file
0
wallabag/docker-compose.wallabag.yml
Normal file → Executable file
0
wallabag/docker-compose.wallabag.yml
Normal file → Executable file
0
www/docker-compose.www.yml
Normal file → Executable file
0
www/docker-compose.www.yml
Normal file → Executable file
Loading…
Add table
Reference in a new issue