use file permission to disable services
This commit is contained in:
parent
cab0fcdb08
commit
5bffcd541e
4 changed files with 3 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
#!/bin/bash
|
||||
# docker
|
||||
# override docker-compose
|
||||
# perm 444 ignores YAML files without other read-only permission
|
||||
docker-compose ()
|
||||
{
|
||||
/usr/local/bin/docker-compose $(find -name 'docker-compose*.yml' -type f -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 444 -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue