updating configuration

This commit is contained in:
Your Name committed 2021-02-05 18:08:21 +00:00
1 parent 507a487841
commit 40dcf57953
5 files changed
+26 -2

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
#SHELL := /bin/bash
ARGS = `arg="$(filter-out $@,$(MAKECMDGOALS))" && echo $${arg:-${1}}`
update_secrets_sample:
@echo "Masking env files..."
@find . -name *.env | xargs -I{} cp {} {}.sample
@find . -name *.env.sample | xargs -I{} sed -i "s/\=.*/\=xxxxxxxxx/g" {}
# @cat zigbee2mqtt/settings/configuration.yaml | sed "s/\:.*/\: xxxxxxxxx/g" > zigbee2mqtt/settings/configuration.yaml.sample #mask passwords
commit: update_secrets_sample
git add .
git diff-index --quiet HEAD || git commit -m "$(call ARGS,\"updating configuration\")"
git push
%:
@: