From 5ef987a06f267bc50e88de5943fbfaa536123387 Mon Sep 17 00:00:00 2001 From: Laci Date: Sat, 19 Oct 2024 14:24:06 +0200 Subject: [PATCH] cp all json files except template and secret --- scripts/scheduler/entrypoint.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/scheduler/entrypoint.sh b/scripts/scheduler/entrypoint.sh index 9fd2980..3538b4e 100644 --- a/scripts/scheduler/entrypoint.sh +++ b/scripts/scheduler/entrypoint.sh @@ -135,11 +135,9 @@ deploy_additionals(){ # copy json files into service directory cp -rv $DIR/$NAME-secret.json $SECRET_DIR/$NAME/$NAME.json - cp -rv $DIR/service-$NAME.json $SERVICE_DIR/service-$NAME.json; - cp -rv $DIR/domain-$NAME.json $SERVICE_DIR/domain-$NAME.json; - cp -rv $DIR/firewall-$NAME.json $SERVICE_DIR/firewall-$NAME.json; - cp -rv $DIR/firewall-$NAME-server-dns.json $SERVICE_DIR/firewall-$NAME-server-dns.json; - cp -rv $DIR/firewall-$NAME-server-smtp.json $SERVICE_DIR/firewall-$NAME-server-smtp.json; + cp -rv $DIR/*.json $SERVICE_DIR/; + rm $SERVICE_DIR/template.json; + rm $SERVICE_DIR/$NAME-secret.json; # env variables are named by "key" from the source template # for example NEXTCLOUD_DOMAIN, NEXTCLOUD_USERNAME, NEXTCLOUD_PASSWORD have to be set by according to template