[https://gitlab.cern.ch/wordpress/paas/wordpress-operator/-/issues/49] Enable fluentformpro
Merge request reports
Activity
16 16 # Set or update options 17 17 source /usr/share/container-scripts/set-options.sh 18 18 19 # Licensing Activation 20 source /usr/share/container-scripts/license_activation.sh I moved it to entrypoint to be consistent with set options as it is "somehow" plugin modification which can happen at any time. Also the license key might expire and need to change at some point so a deployment restart should be enough to re activate. Isn't the install script run on the initial installation of every wordpress instance?
Edited by Thomas Ferfelis
changed title from Enable fluentformpro to {+[https://gitlab.cern.ch/wordpress/paas/wordpress-operator/-/issues/49] +}Enable fluentformpro
- app/scripts/license_activation.sh 0 → 100644
- app/scripts/license_activation.sh 0 → 100644
1 #!/bin/bash 2 3 configure_license_plugins() { 4 echo "--> Configuring Plugin Licensing..." 5 I would have an assertion beforehand to make sure this is set, if the variable is empty (for any reason), we will be overwriting with an empty key:
Regarding this proposal. The current solution mentioned in here. If we don't provide a key at all it brings up an invalid one as a default which results to this
. It seems failure is prevented on non key or invalid. Do you think the
set +e
will be needed without the above logic?To clarify, the
Validating License...
etc. is done by thewp fluentform activate_license
command.That is indeed good enough IMHO (and good to see it does that), however my only question is: What happens if it had a valid license, then we changed to an empty/invalid one, and runs this command? Does it keep the old state? (If it does not, then maybe there is still value in having the assertion above).
Do you think the set +e will be needed without the above logic?
I don't think so, this looks good!
I don't know how that scenario would take place because the value will be overridden from ok4 argo config values and it will exist on a vault. As of results i have some regarding validation which surprised me as well. Initially i thought it would invalidate the key if dummy key enforced. But it seems since its not valid it doesn't change.
added 3 commits
-
fd97da52...db87e250 - 2 commits from branch
mvp
- 0c6f11fa - Merge branch 'mvp' into fluentformpro
-
fd97da52...db87e250 - 2 commits from branch
requested review from @fborgesa