Skip to content

Commit

Permalink
fix(main/openjdk-17): fix profile script path in postinst
Browse files Browse the repository at this point in the history
  • Loading branch information
Grimler91 committed Jun 26, 2024
1 parent 48714d8 commit 1ce30a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/openjdk-17/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Java development kit and runtime"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=17.0
TERMUX_PKG_REVISION=33
TERMUX_PKG_REVISION=34
_COMMIT=82234f890786d49c49cf4ecbcb09c47bd9bea7ed
TERMUX_PKG_SRCURL=https://github.com/openjdk/mobile/archive/$_COMMIT.tar.gz
TERMUX_PKG_SHA256=5b298148a26e754120c6dfe699056d0609fc6ed92bfc858dc2ba4909ef6e791b
Expand Down
2 changes: 1 addition & 1 deletion packages/openjdk-17/hooks/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ -x "@TERMUX_PREFIX@/bin/update-alternatives" ]; then
update-alternatives --install @TERMUX_PREFIX@/etc/profile.d/java.sh java-profile @TERMUX_PREFIX@/lib/jvm/java-17-openjdk 40
update-alternatives --install @TERMUX_PREFIX@/etc/profile.d/java.sh java-profile @TERMUX_PREFIX@/lib/jvm/java-17-openjdk/etc/profile.d/java.sh 40
for tool in @binaries@; do
update-alternatives --install \
@TERMUX_PREFIX@/bin/$tool $tool \
Expand Down

0 comments on commit 1ce30a2

Please sign in to comment.