non interactive reinstall and delete package within remote server

This commit is contained in:
Lukas Heiligenbrunner 2020-10-22 20:06:37 +02:00
parent 92d6ae0e7e
commit 812c45cb13

View File

@ -85,6 +85,5 @@ deploy_test1:
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- scp deb/OpenMediaCenter-*.deb root@192.168.0.42:/tmp/
- ssh root@192.168.0.42 "apt-get --reinstall install /tmp/OpenMediaCenter-*.deb"
- rm /tmp/OpenMediaCenter-*.deb
- ssh root@192.168.0.42 "DEBIAN_FRONTEND=noninteractive apt-get --reinstall -y -qq install /tmp/OpenMediaCenter-*.deb && rm /tmp/OpenMediaCenter-*.deb"