Browse Source

.env

merge-requests/22/head
Steven Foerster 6 years ago
parent
commit
c26148c951
  1. 3
      scripts/env/setup.sh
  2. 1
      scripts/update.sh

3
scripts/env/setup.sh vendored

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
#!/bin/bash
VAR_FILE=/opt/mistborn_volumes/base/base.txt
VAR_FILE=/opt/mistborn/.env
source /opt/mistborn/scripts/subinstallers/platform.sh
@ -10,3 +10,4 @@ if [ "$DISTRO" == "ubuntu" ] && [ "$VERSION_ID" == "20.04" ]; then @@ -10,3 +10,4 @@ if [ "$DISTRO" == "ubuntu" ] && [ "$VERSION_ID" == "20.04" ]; then
fi
echo "MISTBORN_DNS_BIND_IP=${MISTBORN_DNS_BIND_IP}" | sudo tee ${VAR_FILE}
sudo chown mistborn:mistborn ${VAR_FILE}

1
scripts/update.sh

@ -8,6 +8,7 @@ sudo find /etc/systemd/system/ -type f -name 'Mistborn*' | xargs sudo sed -i "s/ @@ -8,6 +8,7 @@ sudo find /etc/systemd/system/ -type f -name 'Mistborn*' | xargs sudo sed -i "s/
sudo find /etc/systemd/system/ -type f -name 'Mistborn*' | xargs sudo sed -i "s/DIFACE/$iface/"
sudo systemctl daemon-reload
sudo systemctl restart Mistborn-setup
sudo docker-compose -f /opt/mistborn/base.yml pull
sudo docker-compose -f /opt/mistborn/base.yml build

Loading…
Cancel
Save