-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·36 lines (28 loc) · 886 Bytes
/
init.sh
File metadata and controls
executable file
·36 lines (28 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Change user to pi
# (already pi, but to be sure, nothing harmfull...
# Don't ask, don't say anything, just run this file idiot!)
sudo chown pi:pi -R ../.ssh
sudo chown pi:pi -R ../docker-cluster
# Add SSH-key to system
eval $(ssh-agent -s)
ssh-add ~/.ssh/id_rsa
# DNS fix
sudo cp dhcpcd.conf /etc/dhcpcd.conf
sudo chmod 664 /etc/dhcpcd.conf
sudo chown root:netdev /etc/dhcpcd.conf
sudo systemctl daemon-reload
sudo service dhcpcd restart
# Sorry, we need git
sudo apt-get install -y git
git config core.sshCommand 'ssh -o StrictHostKeyChecking=no'
git pull origin master
# Now we gonna setup something...
echo "We are going to run setup.sh"
echo "In the meantime you can listen to some music..."
echo "Listen for example to: 'https://www.youtube.com/watch?v=B1qWnmycriA'"
echo "CLICK FAST! Starting in 7 seconds..."
sleep 7
# Run setup.sh..
./setup.sh
# Bye Bye!!