-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#9340 update mail resource creation per conversation with Kevin and Phil
- Loading branch information
1 parent
d2fee0d
commit 3c57858
Showing
1 changed file
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,15 +30,9 @@ | |
|
||
`sudo vi /usr/local/payara6/glassfish/domains/domain1/config/domain.xml` | ||
|
||
The lines will be part of three sections, examples shown below (but your content will vary). | ||
The lines will appear in two sections, examples shown below (but your content will vary). | ||
|
||
Section 1: mail resource (under `<resources>`) | ||
|
||
``` | ||
<mail-resource auth="false" host="localhost" from="[email protected]" user="dataversenotify" jndi-name="mail/notifyMailSession"></mail-resource> | ||
``` | ||
|
||
Section 2: system properties (under `<server name="server" config-ref="server-config">`) | ||
Section 1: system properties (under `<server name="server" config-ref="server-config">`) | ||
|
||
``` | ||
<system-property name="dataverse.db.user" value="dvnuser"></system-property> | ||
|
@@ -50,7 +44,7 @@ | |
|
||
Note: if you used the Dataverse installer, you won't have a `dataverse.db.password` property. See "Create password aliases" below. | ||
|
||
Section 3: JVM options (under `<java-config classpath-suffix="" debug-options="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009" system-classpath="">`, the one under `<config name="server-config">`, not under `<config name="default-config">`) | ||
Section 2: JVM options (under `<java-config classpath-suffix="" debug-options="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9009" system-classpath="">`, the one under `<config name="server-config">`, not under `<config name="default-config">`) | ||
|
||
``` | ||
<jvm-options>-Ddataverse.files.directory=/usr/local/dvn/data</jvm-options> | ||
|
@@ -88,6 +82,10 @@ | |
|
||
`sudo -u dataverse /usr/local/payara6/bin/asadmin start-domain` | ||
|
||
1. Create a Java mail resource, pointing to your SMTP relay: | ||
|
||
`sudo -u dataverse /usr/local/payara6/bin/create-javamail-resource --mailhost "$SMTP_SERVER" --mailuser "dataversenotify" --fromaddress "do-not-reply@${HOST_ADDRESS}" mail/notifyMailSession` | ||
|
||
1. Create password aliases for your database, rserve and datacite jvm-options, if you're using them: | ||
|
||
``` | ||
|