fixed working dir in init.sh and added cp to move cloud-init ssh keys to havenuser/.ssh
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
# echo "git pull:\c"
|
||||
# git pull
|
||||
|
||||
echo "Copying Grungy Keys to HavenUser"
|
||||
sudo cp ssh_host_rsa_key /home/havenuser/.ssh/id_ecdsa
|
||||
sudo cp ssh_host_rsa_key.pub /home/havenuser/.ssh/id_ecdsa.pub
|
||||
|
||||
sudo docker volume create portainer_data
|
||||
sudo docker volume create havenuser_data
|
||||
sudo docker volume create nextcloud_data
|
||||
|
||||
1
init.sh
1
init.sh
@@ -1,3 +1,4 @@
|
||||
cd /haven_data/dockercomposefiles
|
||||
sudo git clone http://192.168.20.213:3000/chris/dockercomposefiles.git /haven_data/dockercomposefiles
|
||||
|
||||
echo "Setting Permissions...\c"
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
# echo "git pull:\c"
|
||||
# git pull
|
||||
|
||||
echo "Copying Grungy Keys to HavenUser"
|
||||
sudo cp ssh_host_rsa_key /home/havenuser/.ssh/id_ecdsa
|
||||
sudo cp ssh_host_rsa_key.pub /home/havenuser/.ssh/id_ecdsa.pub
|
||||
|
||||
echo "Setting Permissions...\c"
|
||||
sudo chown -R :havenuser /haven_data/dockercomposefiles/
|
||||
sudo chmod -R 770 /haven_data/dockercomposefiles/
|
||||
|
||||
Reference in New Issue
Block a user