Skip to content

Commit ffbd96e

Browse files
authored
feat(installer): activate with env (#469)
1 parent 8ed953b commit ffbd96e

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.github/actions/test-actions-core/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ runs:
7979

8080
- name: Install
8181
run: |
82-
docker compose exec --workdir /var/www/localhost/htdocs/openemr/contrib/util/installScripts \
82+
docker compose exec \
83+
--env OPENEMR_ENABLE_INSTALLER_AUTO=1 \
84+
--workdir /var/www/localhost/htdocs/openemr/contrib/util/installScripts \
8385
"${OPENEMR_SERVICE_NAME}" sh -c 'sed -e "s@^exit;@ @" InstallerAuto.php |
8486
php -- rootpass=root server=mysql loginhost=%'
8587
shell: bash

docker/openemr/7.0.3/utilities/devtoolsLibrary.source

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ importRandomPatients() {
234234
# parameter 1 is number of multisites to create
235235
generateMultisiteBank() {
236236
echo "Setting up a multisite bank with following number of multisites (labeled run1, run2, run3, ...): run1...run${1}"
237+
# Activate newer versions of InstallerAuto that support environment variable activation.
238+
export OPENEMR_ENABLE_INSTALLER_AUTO=1
239+
# Activate older versions of InstallerAuto that require `sed` activation.
237240
sed -i "s@exit;@//exit;@" /var/www/localhost/htdocs/openemr/contrib/util/installScripts/InstallerAuto.php
238241
a=1
239242
while [ ${a} -le "$1" ]

docker/openemr/7.0.4/utilities/devtoolsLibrary.source

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ importRandomPatients() {
234234
# parameter 1 is number of multisites to create
235235
generateMultisiteBank() {
236236
echo "Setting up a multisite bank with following number of multisites (labeled run1, run2, run3, ...): run1...run${1}"
237+
# Activate newer versions of InstallerAuto that support environment variable activation.
238+
export OPENEMR_ENABLE_INSTALLER_AUTO=1
239+
# Activate older versions of InstallerAuto that require `sed` activation.
237240
sed -i "s@exit;@//exit;@" /var/www/localhost/htdocs/openemr/contrib/util/installScripts/InstallerAuto.php
238241
a=1
239242
while [ ${a} -le "$1" ]

docker/openemr/flex/utilities/devtoolsLibrary.source

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ importRandomPatients() {
250250
# parameter 1 is number of multisites to create
251251
generateMultisiteBank() {
252252
echo "Setting up a multisite bank with following number of multisites (labeled run1, run2, run3, ...): run1...run${1}"
253+
# Activate newer versions of InstallerAuto that support environment variable activation.
254+
export OPENEMR_ENABLE_INSTALLER_AUTO=1
255+
# Activate older versions of InstallerAuto that require `sed` activation.
253256
sed -i "s@exit;@//exit;@" /var/www/localhost/htdocs/openemr/contrib/util/installScripts/InstallerAuto.php
254257
a=1
255258
while [ "${a}" -le "${1}" ]; do

0 commit comments

Comments
 (0)