From 77d4de5332690f04a8d5468d3554d55f23375e7c Mon Sep 17 00:00:00 2001 From: hahn <axel.hahn@iml.unibe.ch> Date: Wed, 20 Jul 2022 15:18:09 +0200 Subject: [PATCH] onbuild: remove unneeded dirs --- hooks/onbuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hooks/onbuild b/hooks/onbuild index 868e1937..a343328a 100644 --- a/hooks/onbuild +++ b/hooks/onbuild @@ -7,14 +7,20 @@ # - Projekt-Configs anpassen # # 2014-05-07 axel.hahn@iml.unibe.ch +# 2022-07-20 axel.hahn@iml.unibe.ch remove unneeded dirs, e.g. docker # ====================================================================== +dirs2remove="data docker" + echo ONDEPLOY fuer CI Deployment GUI echo -cd `dirname $0` +cd $( dirname $0 ) cd .. -echo "----------> setze x-recht auf gitsshwrapper " +echo "----------> Set X permissions on gitsshwrapper " ls -l shellscripts/gitsshwrapper.sh && chmod 755 shellscripts/gitsshwrapper.sh && ls -l shellscripts/gitsshwrapper.sh +echo "----------> Reove unneeded dirs: $dirs2remove" +rm -rf ${dirs2remove} + echo "----------> done." -- GitLab