„update.sh“ ändern

This commit is contained in:
Yann Mölle 2023-05-26 21:30:05 +02:00
parent 09f1c20fd1
commit d7711703f0

View File

@ -1,10 +1,10 @@
#!/bin/bash #!/bin/bash
cd /root/ cd /root/
rm -rf /root/links/mylinks rm -rf /root/links/yannmoelle
mkdir /root/links/mylinks mkdir /root/links/yannmoelle
cd /root/links/mylinks/ cd /root/links/yannmoelle/
git clone ssh://git@ssh.git.moelle.space:2222/hxcde/mylinks.git . git clone ssh://git@ssh.git.moelle.space:2222/hxcde/yannmoelle.git .
rm README.md rm README.md
docker stop mylinks docker stop yannmoelle
docker rm mylinks docker rm yannmoelle
docker run -d --restart=always --name mylinks -p 127.0.0.1:8085:80 -v /root/links/mylinks/:/usr/local/apache2/htdocs/ httpd:2.4 docker run -d --restart=always --name mylinks -p :8085:80 -v /root/links/yannmoelle/:/usr/local/apache2/htdocs/ httpd:2.4