1.8 Update Properties

To update a property or a set of properties, use this procedure.

Note:

You might need to restart the application for some updates to take effect.
To update a property, run:
./ahffi updateproperty -k <key> -v <value>
Set of keys that can updated:
  • DB_HOST=
  • DB_PORT=
  • DB_SERVICE=
  • DB_USER=
  • DB_PASSWORD=
  • WEBAPP_PORT=
  • DB_WALLET=
  • INSTANT_CLIENT=<path>
  • JAVA_HOME= <path>
  • CLAMSCAN= <path to clamscan folder>
  • LOG_RETENTION

    The number of days a log file will be retained after its last edited date.

  • MAX_COLLECTION_DIR_SIZE

    Maximum size (GB) for the collections directory. If exceeded, old collections will be deleted.

  • CLIENT_KEY_EXPIRY_IN_DAYS

    Client needs to reset password after this (in days) expiry.

  • GRACE_PERIOD_IN_DAYS

    Client must reset password before the grace period (in days) ends after expiry to avoid getting deregistered.

  • COLLECTION_UPLOAD_LIMIT

    Total collection(s) size (GB) that can be uploaded in an hour.

To update a set of properties, run:
./ahffi updateproperty -p <property file>

Add a list of properties you want to update to a text file and then use that text file to update the properties.

For example:
DB_HOST="<your hostname.domainname>"
DB_PORT="1555"
DB_SERVICE="<your DB service URL>"
DB_USER="ahffi_testuser"
DB_PASSWORD="*******"
JAVA_HOME="/usr/lib/jvm/java-11-openjdk-11.0.19.0.7-4.0.1.el8.x86_64"
INSTANT_CLIENT="/usr/lib/oracle/21/client64"