mirror of
https://github.com/YunoHost-Apps/matrix-puppet-discord_ynh.git
synced 2024-09-03 19:36:25 +02:00
13 lines
385 B
Bash
13 lines
385 B
Bash
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
|
|
echo <<EOF > __INSTALL_DIR__/config.yaml
|
|
# /!\ FILE GENERATED AUTOMATICALLY BEFORE EACH SERVICE RESTART
|
|
# CONSIDER EDITING /etc/__APP__/user.config.yaml
|
|
EOF
|
|
|
|
__INSTALL_DIR__/venv/bin/yq -y -s '.[0] * .[1]' __INSTALL_DIR__/base.config.yaml /etc/__APP__/user.config.yaml > __INSTALL_DIR__/config.yaml
|
|
|
|
__YNH_NPM__ start -- -c config.yaml "$@"
|