fixed working dir in init.sh and added cp to move cloud-init ssh keys to havenuser/.ssh

This commit is contained in:
2025-12-21 05:10:19 +00:00
parent 15068d4aca
commit 4de207c315
3 changed files with 9 additions and 0 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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/