Skip to content

Commit

Permalink
do not run systemd command if it's container running by GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
trunkmaster committed Jul 24, 2024
1 parent 448c219 commit ab47364
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Packaging/Sources/5_build_libs-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Packaging/Sources/6_build_libs-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Packaging/Sources/9_build_Applications.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab47364

Please sign in to comment.