From 812c45cb13e449cccd9192d881a00b9379be596f Mon Sep 17 00:00:00 2001 From: Lukas Heiligenbrunner Date: Thu, 22 Oct 2020 20:06:37 +0200 Subject: [PATCH] non interactive reinstall and delete package within remote server --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f6bedd7..cb0771f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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"