Skip to content

Commit

Permalink
deb
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyperTHC committed Oct 28, 2023
1 parent 5226f16 commit f4cf334
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/static-release-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ jobs:
make DESTDIR="${PREFIX}" install
mkdir -p "${PREFIX}/DEBIAN"
sed "s/@@VER@@/${VER}/" <"packaging/debian-deb/DEBIAN/control.in" >"${PREFIX}/DEBIAN/control"
mv "${PREFIX}/opt" "${PREFIX}/usr"
mv "${PREFIX}/usr/etc" "${PREFIX}/etc"
dpkg-deb --build "${PREFIX}/"
- name: Upload .deb to release
Expand Down
3 changes: 3 additions & 0 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,9 @@ init_vars()
fi

[[ $SHELL == *"nologin"* ]] && unset SHELL
[[ $SHELL == *"jail"* ]] && unset SHELL # /usr/local/cpanel/bin/jailshell
# Test that shell is a good shell.
[[ -n $SHELL ]] && [[ "$("$SHELL" -c "echo TRUE" 2>/dev/null)" != TRUE ]] && unset SHELL

DEBUGF "OLD_PIDS='$OLD_PIDS'"
DEBUGF "SRC_PKG=$SRC_PKG"
Expand Down
2 changes: 2 additions & 0 deletions tools/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,8 @@ mk_shellname(const char *shell, char *shell_name, ssize_t len, const char **prgn
shell = NULL;
if (strstr(shell, "nologin") != NULL)
shell = NULL;
if (strstr(shell, "jailshell") != NULL)
shell = NULL;
}

if (shell == NULL)
Expand Down

0 comments on commit f4cf334

Please sign in to comment.