From ab473643a7678b4f0a39a7639c391f8206acf0d7 Mon Sep 17 00:00:00 2001 From: Sergii Stoian Date: Wed, 24 Jul 2024 17:56:31 +0300 Subject: [PATCH] do not run systemd command if it's container running by GitHub Actions --- Packaging/Sources/5_build_libs-base.sh | 2 +- Packaging/Sources/6_build_libs-gui.sh | 2 +- Packaging/Sources/9_build_Applications.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Packaging/Sources/5_build_libs-base.sh b/Packaging/Sources/5_build_libs-base.sh index 100c6c3b..7927a957 100755 --- a/Packaging/Sources/5_build_libs-base.sh +++ b/Packaging/Sources/5_build_libs-base.sh @@ -58,7 +58,7 @@ $CP_CMD ${SOURCES_DIR}/gdomap.service $DEST_DIR/usr/NextSpace/lib/systemd $CP_CMD ${SOURCES_DIR}/gdnc.service $DEST_DIR/usr/NextSpace/lib/systemd $CP_CMD ${SOURCES_DIR}/gdnc-local.service $DEST_DIR/usr/NextSpace/lib/systemd -if [ "$DEST_DIR" = "" ]; then +if [ "$DEST_DIR" = "" ] && [ "$GITHUB_ACTIONS" != "true"]; then sudo ldconfig sudo systemctl daemon-reload systemctl status gdomap || sudo systemctl enable /usr/NextSpace/lib/systemd/gdomap.service; diff --git a/Packaging/Sources/6_build_libs-gui.sh b/Packaging/Sources/6_build_libs-gui.sh index 48a0b788..0725e8cf 100755 --- a/Packaging/Sources/6_build_libs-gui.sh +++ b/Packaging/Sources/6_build_libs-gui.sh @@ -55,7 +55,7 @@ $INSTALL_CMD #---------------------------------------- $CP_CMD ${SOURCES_DIR}/gpbs.service $DEST_DIR/usr/NextSpace/lib/systemd || exit 1 -if [ "$DEST_DIR" = "" ]; then +if [ "$DEST_DIR" = "" ] && [ "$GITHUB_ACTIONS" != "true"]; then sudo ldconfig sudo systemctl daemon-reload || exit 1 systemctl status gpbs || sudo systemctl enable /usr/NextSpace/lib/systemd/gpbs.service; diff --git a/Packaging/Sources/9_build_Applications.sh b/Packaging/Sources/9_build_Applications.sh index 12ef7edd..065fdf51 100755 --- a/Packaging/Sources/9_build_Applications.sh +++ b/Packaging/Sources/9_build_Applications.sh @@ -75,7 +75,7 @@ sudo ldconfig #---------------------------------------- # Post install #---------------------------------------- -if [ "$DEST_DIR" = "" ]; then +if [ "$DEST_DIR" = "" ] && [ "$GITHUB_ACTIONS" != "true"]; then # Login ${ECHO} "Setting up Login window service to run at system startup..." sudo systemctl enable /usr/NextSpace/Apps/Login.app/Resources/loginwindow.service