From 71ef1f2c796e93b47bb7768d1bddf3cc9737bc42 Mon Sep 17 00:00:00 2001 From: Dimitris Papagiannis Date: Fri, 24 Nov 2023 16:34:19 +0100 Subject: [PATCH] Extra manage commands execution --- deploy_dqmgui.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/deploy_dqmgui.sh b/deploy_dqmgui.sh index b39db0b..bf70b7b 100755 --- a/deploy_dqmgui.sh +++ b/deploy_dqmgui.sh @@ -62,7 +62,13 @@ preliminary_checks() { ;; esac - if [[ -d $INSTALLATION_DIR/$DMWM_GIT_TAG ]]; then + # Stop GUI if already running + if [ -f $INSTALLATION_DIR/$DMWM_GIT_TAG/config/dqmgui/manage ]; then + $INSTALLATION_DIR/$DMWM_GIT_TAG/config/dqmgui/manage stop + fi + + # Delete installation (config & sw, does not delete state) + if [ -d $INSTALLATION_DIR/$DMWM_GIT_TAG ]; then echo "WARNING: $INSTALLATION_DIR/$DMWM_GIT_TAG exists, deleting contents" rm -rf $INSTALLATION_DIR/$DMWM_GIT_TAG/* fi @@ -398,6 +404,9 @@ compile_dqmgui() { # Move the custom Boost.Python interface library to libs. mv $INSTALLATION_DIR/$DMWM_GIT_TAG/sw/cms/dqmgui/$DQMGUI_GIT_TAG/128/src/cpp/Accelerator.so $INSTALLATION_DIR/$DMWM_GIT_TAG/sw/cms/dqmgui/$DQMGUI_GIT_TAG/128/build/lib/Monitoring/DQM/Accelerator.so + + # Compiles layouts etc. + $INSTALLATION_DIR/current/config/dqmgui/manage compile } # Installation procedure of the DQMGUI repository. @@ -442,6 +451,8 @@ install_dqmgui() { # Dynamic parametrization of the makefile, i.e. paths required # during the compilation procedure. _create_makefile_ext + + # TODO: find more info on blacklist.txt file } # Javascript library