This commit is contained in:
KemoNine 2020-08-04 21:53:42 -04:00
parent 5dd57aa2a7
commit 57a88c10ea
2 changed files with 7 additions and 7 deletions

View file

@ -13,6 +13,12 @@ fi
if [ ! -d "/opt/ansible" ] ; then
mkdir /opt/ansible
fi
if [ ! -d "/opt/ansible/.git" ] ; then
git clone https://git.kemonine.info/PiFrame/ansible.git /opt/ansible/
else
cd /opt/ansible
git pull
fi
if [ ! -f "/opt/ansible/ssh.key" ] ; then
ssh-keygen -t rsa -b 4096 -f /opt/ansible/ssh.key -N ''
echo "
@ -22,12 +28,6 @@ cat /opt/ansible/ssh.key.pub
echo "-------------------------------------
"
fi
if [ ! -d "/opt/ansible/.git" ] ; then
git clone https://git.kemonine.info/PiFrame/ansible.git /opt/ansible/
else
cd /opt/ansible
git pull
fi
####################
# WireGuard

View file

@ -23,7 +23,7 @@ sudo docker run -it \
-v /lib/modules:/lib/modules:ro \
-v /var/piframefleet/syncthing:/opt/syncthing \
-v /var/piframefleet/filebrowser:/opt/filebrowser \
-v /var/piframefleet/wireguard:/var/wireguard \
-v /var/piframefleet/wireguard:/opt/wireguard \
-v /var/piframefleet/ansible:/opt/ansible \
-v /var/piframefleet/pictures:/opt/pictures \
piframe/piframefleet:latest