Overlay ignores user input when using standalone.xml.original as a firstrun indicator
Activity
Show:
Not Applicable
Details
Details
Assignee
Unassigned
UnassignedReporter
Former user
Former user(Deactivated)Affects versions
Priority

More fields
Time tracking
More fields
Time trackingCreated 29 March 2016 at 01:44
Updated 21 March 2018 at 07:52
Resolved 21 March 2018 at 07:52
If the user has already run overlay install.sh to set up Zanata, the script will recognise the subsequent runs due to the existence of standalone.xml.original.
Then when the user removes the standalone.xml to regenerate it, the standalone-zanata.xml is copied across without replacing the variables requested from the user (database schema/password, etc)
Removing the .original file causes the install.sh to work correctly.
Build zanata
cd zanata-overlay; gradle -q
cd $JBOSS_HOME; unzip $path_to_build/zanata-overlay/target/zanata-$version.zip
cd $JBOSS_HOME/bin/zanata-installer
chmod +x install.sh; ./install.sh
Enter values, leaving mysql password empty, until the $JBOSS_HOME/standalone/configuration/standalone.xml is created
Delete $JBOSS_HOME/standalone/configuration/standalone.xml
./install.sh
Enter different values for schema and a mysql password until .xml is created
Actual:
$JBOSS_HOME/standalone/configuration/standalone.xml has old value for schema, and no password
Expected:
The file was updated to reflect the changes