Browse Source

tweaks

merge-requests/5/head
Steven Foerster 6 years ago
parent
commit
f64f220d77
  1. 8
      scripts/install.sh

8
scripts/install.sh

@ -163,8 +163,8 @@ sudo systemctl restart unattended-upgrades
# install and start base services # install and start base services
# default interface # default interface
sudo cp ./scripts/services/Mistborn* /etc/systemd/system/ sudo cp ./scripts/services/Mistborn* /etc/systemd/system/
sudo find /etc/systemd/system/ -type f -name 'Mistborn*' | xargs sudo sed -i "s/User=.*/User=$USER/" sudo find /etc/systemd/system/ -type f -name 'Mistborn*' | xargs sudo sed -i "s/User=root/User=$USER/"
sudo find /etc/systemd/system/ -type f -name 'Mistborn*' | xargs sudo sed -i "s/ root:root / $USER:$USER /" #sudo find /etc/systemd/system/ -type f -name 'Mistborn*' | xargs sudo sed -i "s/ root:root / $USER:$USER /"
sudo find /etc/systemd/system/ -type f -name 'Mistborn*' | xargs sudo sed -i "s/DIFACE/$iface/" sudo find /etc/systemd/system/ -type f -name 'Mistborn*' | xargs sudo sed -i "s/DIFACE/$iface/"
#if [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ]; then #if [ "$DISTRO" == "debian" ] || [ "$DISTRO" == "raspbian" ]; then
@ -188,9 +188,11 @@ sudo sed -i "s/IPV4_PUBLIC/$IPV4_PUBLIC/" ./compose/production/traefik/traefik.t
sudo docker-compose -f base.yml pull || true sudo docker-compose -f base.yml pull || true
sudo docker-compose -f base.yml build sudo docker-compose -f base.yml build
# DNS ## disable other DNS services
sudo systemctl stop systemd-resolved 2>/dev/null || true sudo systemctl stop systemd-resolved 2>/dev/null || true
sudo systemctl disable systemd-resolved 2>/dev/null || true sudo systemctl disable systemd-resolved 2>/dev/null || true
sudo systemctl stop dnsmasq 2>/dev/null || true
sudo systemctl disable dnsmasq 2>/dev/null || true
# array of dns entries to add (not not already present) # array of dns entries to add (not not already present)
declare -a dnslist=("pihole.mistborn" \ declare -a dnslist=("pihole.mistborn" \

Loading…
Cancel
Save