This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch sync-rpm-java-path-with-deb
in repository https://gitbox.apache.org/repos/asf/couchdb-pkg.git

commit fe694019dd08256509e802c5db2e471a6e8f36f7
Author: Nick Vatamaniuc <vatam...@apache.org>
AuthorDate: Wed Sep 18 11:58:49 2024 -0400

    Sync rpm nouveau java path usage with deb packages
    
    The `alternatives` system will switch /usr/bin/java accordingly
    
    Reference: https://github.com/apache/couchdb-pkg/pull/156
---
 rpm/SOURCES/couchdb-nouveau         | 4 ++--
 rpm/SOURCES/couchdb-nouveau.service | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/rpm/SOURCES/couchdb-nouveau b/rpm/SOURCES/couchdb-nouveau
index 9702ae9..717cbcc 100644
--- a/rpm/SOURCES/couchdb-nouveau
+++ b/rpm/SOURCES/couchdb-nouveau
@@ -10,7 +10,7 @@
 # License for the specific language governing permissions and limitations under
 # the License.
 
-# alternatives system will automatically switch the /usr/lib/jvm/jre symlink
+# alternatives system will automatically switch the /usr/bin/java
 
-JAVA_HOME="/usr/lib/jvm/jre"
+JAVA_PATH="/usr/bin/java"
 JAVA_OPTS="-server -Djava.awt.headless=true -Xmx2g"
diff --git a/rpm/SOURCES/couchdb-nouveau.service 
b/rpm/SOURCES/couchdb-nouveau.service
index 429dd4f..6b36c35 100644
--- a/rpm/SOURCES/couchdb-nouveau.service
+++ b/rpm/SOURCES/couchdb-nouveau.service
@@ -5,7 +5,7 @@ After=network-online.target
 
 [Service]
 EnvironmentFile=/etc/sysconfig/couchdb-nouveau
-ExecStart=/bin/sh -c "exec ${JAVA_HOME}/bin/java ${JAVA_OPTS} -jar 
/opt/couchdb/nouveau/lib/nouveau-*.jar server /opt/couchdb/etc/nouveau.yaml"
+ExecStart=/bin/sh -c "exec ${JAVA_PATH} ${JAVA_OPTS} -jar 
/opt/couchdb/nouveau/lib/nouveau-*.jar server /opt/couchdb/etc/nouveau.yaml"
 LimitNOFILE=infinity
 Restart=on-failure
 NoNewPrivileges=true

Reply via email to