Browse Source

paths

merge-requests/22/head
Steven Foerster 6 years ago
parent
commit
2f1045cc9a
  1. 2
      scripts/update.sh

2
scripts/update.sh

@ -9,7 +9,7 @@ sudo git -C /opt/mistborn submodule update --init --recursive @@ -9,7 +9,7 @@ sudo git -C /opt/mistborn submodule update --init --recursive
sudo pip3 install -e /opt/mistborn/modules/mistborn-cli
iface=$(ip -o -4 route show to default | egrep -o 'dev [^ ]*' | awk 'NR==1{print $2}')
sudo cp ./scripts/services/Mistborn* /etc/systemd/system/
sudo cp /opt/mistborn/scripts/services/Mistborn* /etc/systemd/system/
sudo find /etc/systemd/system/ -type f -name 'Mistborn*' | xargs sudo sed -i "s/User=root/User=mistborn/"
sudo find /etc/systemd/system/ -type f -name 'Mistborn*' | xargs sudo sed -i "s/DIFACE/$iface/"

Loading…
Cancel
Save