matrix-puppet-discord_ynh/conf/run.sh

14 lines
369 B
Bash
Raw Normal View History

#!/bin/bash
2021-09-13 15:10:53 +02:00
set -o errexit
set -o nounset
2021-09-12 20:43:14 +02:00
echo <<EOF > __FINALPATH__/config.yaml
# /!\ FILE GENERATED AUTOMATICALLY BEFORE EACH SERVICE RESTART
# CONSIDER EDITING /etc/__APP__/user.config.yaml
EOF
2021-09-12 20:43:14 +02:00
__PIP_PATH__/bin/yq -y -s '.[0] * .[1]' __FINALPATH__/base.config.yaml /etc/__APP__/user.config.yaml > __FINALPATH__/config.yaml
2021-09-12 20:43:14 +02:00
__YNH_NPM__ start -- -c config.yaml $@