diff --git a/entrypoint.sh b/entrypoint.sh index a115655..8966d2f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,10 +1,16 @@ #!/bin/bash +TIMEZONE='America/Los_Angeles' +if [ ! -z "$TZ" ]; then + TIMEZONE="$TZ" +fi + HUE_HOME="/opt/hue/" HUE_CONFIG_FILE="$HUE_HOME/desktop/conf/pseudo-distributed.ini" APP_BLACKLIST="search,security,oozie,jobbrowser,pig,beeswax,search,zookeeper,impala,rdbms,spark,metastore,hbase,sqoop,jobsub,about" sed -i "s#.*blacklist.*# app_blacklist=$APP_BLACKLIST#g" $HUE_CONFIG_FILE sed -i "s#.*webhdfs_url.*# webhdfs_url=http://$NAMENODE_HOST:50070/webhdfs/v1#g" $HUE_CONFIG_FILE +sed -i "s#America/Los_Angeles#$TIMEZONE#g" $HUE_CONFIG_FILE exec $@