-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update openemr-cmd to be flexible for - or _ in container names (#395)
- Loading branch information
1 parent
0712bef
commit 138d04e
Showing
1 changed file
with
6 additions
and
15 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 |
---|---|---|
|
@@ -3,31 +3,22 @@ | |
# Function : Manage the docker command line | ||
# Version : See below --version section | ||
# Copyright : Copyright (c) 2020 Reid Liu <[email protected]> | ||
# Copyright : Copyright (c) 2020-2022 Brady Miller <[email protected]> | ||
# Copyright : Copyright (c) 2020-2024 Brady Miller <[email protected]> | ||
# Author : Reid Liu <[email protected]> | ||
# Author : Brady Miller <[email protected]> | ||
# License : https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 | ||
################################################################################################# | ||
|
||
# Increment the version when modify script | ||
VERSION="1.0.17" | ||
VERSION="1.0.18" | ||
|
||
# If the docker is snap or non-snap docker | ||
# Setting the container names accordingly | ||
get_container_names() { | ||
snap_docker=$(which docker) | ||
if [ $snap_docker == '/snap/bin/docker' ] | ||
then | ||
INSANE_DEV_DOCKER="openemr-8-3-1" | ||
EASY_DEV_DOCKER="openemr-1" | ||
COUCHDB_DOCKER="couchdb-1" | ||
MARIADB_DOCKER="mysql-1" | ||
else | ||
INSANE_DEV_DOCKER="_openemr-8-3_1" | ||
EASY_DEV_DOCKER="_openemr_1" | ||
COUCHDB_DOCKER="_couchdb_1" | ||
MARIADB_DOCKER="_mysql_1" | ||
fi | ||
INSANE_DEV_DOCKER="openemr-8-3[_\-]1" | ||
EASY_DEV_DOCKER="openemr[_\-]1" | ||
COUCHDB_DOCKER="couchdb[_\-]1" | ||
MARIADB_DOCKER="mysql[_\-]1" | ||
} | ||
|
||
# Set the container names | ||
|