Rename apkrepo.conf to repo.conf
This commit is contained in:
parent
a2605594d3
commit
0351abcb92
@ -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.default.json >/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/*
|
||||
|
Loading…
Reference in New Issue
Block a user