Em9 How-to: Set the timezone in the entermedia-docker.sh script

26 views
Skip to first unread message

Landy DeField

unread,
Nov 2, 2018, 2:55:41 AM11/2/18
to EnterMedia
This is a specific how-to guide for adjusting the TZ timezone settings set in the bash script provided by following the docker deployment guide located at -->https://entermediadb.org/knowledge/docker-deployments/ 

Disclaimer:
This worked for me I cannot provide any guarantee whatsoever it will work for you.
Editing the script provided by entermediadb.org could make the script throw errors and not work.
If you do not feel comfortable editing the script DO NOT DO IT contact Entermedisdb.org for assistance instead --> https://entermediadb.org/customization-and-client-services/

For this How-to I am using Linux and the nano text editor in a bash terminal.

By default the script sets the timezone for the container as New York
So you need to follow these steps before running the entermedia-docker.sh script (unless you are located in the New York timezone). 

Download the script
$ curl -o entermedia-docker.sh -jL docker.entermediadb.org

Edit the script using nano
$ nano entermedia-docker.sh

Alt+Shift+3 to turn on line numbers

Scroll to line 137

Look for
..
        -e TZ="America/New_York" \
..

Edit "America/New_York" to match your timezone in the TZ format
Example: I edited line 137 to use the Los Angeles timezone

..
         -e TZ="America/Los_Angeles" \
..

If you do not know your timezone TZ format you can find it listed in this chart on Wikipedia.
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List

Ctrl+X To Exit
Save modified buffer?  (Answering "No" will DISCARD changes.)                                                                                                                                                     
Y to save
File Name to Write: entermedia-docker.sh                                                                                                                                                                          
Press enter key

Need help? Contact Entermedisdb.org for assistance --> https://entermediadb.org/customization-and-client-services/

Reply all
Reply to author
Forward
0 new messages