Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker Environment Variables passed to Container and using inside a *.conf file

Featured Replies

Passing my variable like this:

bce135bea0bd4e3d9a64fd6016a7e8da.png

 

The variable is passed fine:

[root@939b57ae6d42 config]# echo ${DRIVER}
lis

 

Inside a *conf file:

# The following drivers are supported:
#   bayrad, CFontz, CFontzPacket, curses, CwLnx, ea65, EyeboxOne, g15, glcd,
#   glcdlib, glk, hd44780, icp_a106, imon, imonlcd,, IOWarrior, irman, joy,
#   lb216, lcdm001, lcterm, lirc, lis, MD8800,, mdm166a, ms6931, mtc_s16209x,
#   MtxOrb, mx5000, NoritakeVFD, picolcd,, pyramid, rawserial, sdeclcd,
#   sed1330, sed1520, serialPOS, serialVFD, shuttleVFD, sli,, stv5730, svga,
#   t6963, text, tyan, ula200, vlsys_m428, xosd
Driver=${DRIVER}

 

 

Instead of it being the variable I am getting ${DRIVER}

[root@939b57ae6d42 config]# /usr/bin/LCDd -c /config/LCDd.conf
Could not open driver module /usr/lib/lcdproc/${DRIVER}.so: /usr/lib/lcdproc/${DRIVER}.so: cannot open shared object file: No such file or directory
Driver [${DRIVER}] binding failed
Could not load driver ${DRIVER}
There is no output driver
Critical error while initializing, abort.

 

It has to be something really simple I am missing in the formatting.

Why do you think the variable would be expanded in the *CONF file? Unless the config file is pre-processed it won't be expanded.

Variables in a conf file are not normally processed in Linux, this is not a docker issue.

You could have the conf file edited with the current value of the variable during startup using sed if you really want to be able to set things up this way.

  • Author

Variables in a conf file are not normally processed in Linux, this is not a docker issue.

You could have the conf file edited with the current value of the variable during startup using sed if you really want to be able to set things up this way.

Thanks I figured it was something like that.

 

 

 

Sent from my XT1563 using Tapatalk

 

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.