From 0351abcb921460dfbbf2dc166be354e127a82377 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sun, 8 Dec 2019 14:54:00 +0100 Subject: [PATCH] Rename apkrepo.conf to repo.conf --- build/clean-all.sh | 5 ++++- build/etc/nginx/conf.d/{apkrepo.conf => repo.conf} | 0 2 files changed, 4 insertions(+), 1 deletion(-) rename build/etc/nginx/conf.d/{apkrepo.conf => repo.conf} (100%) diff --git a/build/clean-all.sh b/build/clean-all.sh index 3980029..95a8421 100755 --- a/build/clean-all.sh +++ b/build/clean-all.sh @@ -34,7 +34,7 @@ for DIR in $(find /srv ! -path /srv/build -maxdepth 1 -mindepth 1); do done # Remove nginx configs -for CONF in $(find /etc/nginx/conf.d -name '*.conf' -a ! -name apkrepo.conf -a ! -name default.conf); do +for CONF in $(find /etc/nginx/conf.d -name '*.conf' -a ! -name repo.conf -a ! -name default.conf); do rm -f ${CONF} done service nginx reload @@ -51,6 +51,9 @@ EOF export ADMINPWD=$(python3 -c "import json; f = open('/etc/vmmgr/config.json'); j = json.load(f); print(j['host']['adminpwd'])") envsubst /etc/vmmgr/config.json +# Reset lxcmgr config +echo '{"url":"https://repo.spotter.cz/lxc","user":"","pwd":""}' >/etc/lxcmgr/repo.json + # Clean locally installed LXC packages rm -rf /var/lib/lxcmgr/storage/* rm -rf /var/lib/lxcmgr/cache/apps/* diff --git a/build/etc/nginx/conf.d/apkrepo.conf b/build/etc/nginx/conf.d/repo.conf similarity index 100% rename from build/etc/nginx/conf.d/apkrepo.conf rename to build/etc/nginx/conf.d/repo.conf