update for shellcheck

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-09-24 18:36:11 -04:00
parent 544e14ecb0
commit 3a10b0889e
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
8 changed files with 11 additions and 4 deletions

View File

@ -12,4 +12,4 @@ for relaytype in bridge middle exit; do
sed -i 's/${RELAY_PORT}/'"$RELAY_PORT"'/g' "/etc/tor/torrc.$relaytype" sed -i 's/${RELAY_PORT}/'"$RELAY_PORT"'/g' "/etc/tor/torrc.$relaytype"
done done
exec tor -f /etc/tor/torrc.${RELAY_TYPE} exec tor -f "/etc/tor/torrc.${RELAY_TYPE}"

View File

@ -34,4 +34,5 @@ fi
chown -R unifi:unifi /config /usr/lib/unifi chown -R unifi:unifi /config /usr/lib/unifi
# shellcheck disable=SC2068
exec gosu unifi $@ exec gosu unifi $@

View File

@ -13,4 +13,5 @@ make clean
echo "Successfully built and installed the wireguard kernel module!" echo "Successfully built and installed the wireguard kernel module!"
# shellcheck disable=SC2068
exec $@ exec $@

View File

@ -11,6 +11,7 @@ LABEL maintainer "Jessie Frazelle <jess@linux.com>"
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
pcscd \ pcscd \
procps \
software-properties-common \ software-properties-common \
--no-install-recommends && \ --no-install-recommends && \
add-apt-repository ppa:yubico/stable && \ add-apt-repository ppa:yubico/stable && \

View File

@ -3,7 +3,8 @@ set -e
set -o pipefail set -o pipefail
init(){ init(){
local pcscd_running=$(ps -aux | grep [p]cscd) local pcscd_running
pcscd_running=$(pgrep pcscd)
if [ -z "$pcscd_running" ]; then if [ -z "$pcscd_running" ]; then
echo "starting pcscd in backgroud" echo "starting pcscd in backgroud"
pcscd --debug --apdu pcscd --debug --apdu

View File

@ -3,7 +3,8 @@ set -e
set -o pipefail set -o pipefail
init(){ init(){
local pcscd_running=$(ps -aux | grep [p]cscd) local pcscd_running
pcscd_running=$(pgrep pcscd)
if [ -z "$pcscd_running" ]; then if [ -z "$pcscd_running" ]; then
echo "starting pcscd in backgroud" echo "starting pcscd in backgroud"
pcscd --debug --apdu pcscd --debug --apdu

View File

@ -15,6 +15,7 @@ RUN apt-get update && apt-get install -y \
add-apt-repository ppa:yubico/stable && \ add-apt-repository ppa:yubico/stable && \
apt-get update && apt-get install -y \ apt-get update && apt-get install -y \
pcscd \ pcscd \
procps \
usbutils \ usbutils \
yubico-piv-tool \ yubico-piv-tool \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

View File

@ -3,7 +3,8 @@ set -e
set -o pipefail set -o pipefail
init(){ init(){
local pcscd_running=$(ps -aux | grep [p]cscd) local pcscd_running
pcscd_running=$(pgrep pcscd)
if [ -z "$pcscd_running" ]; then if [ -z "$pcscd_running" ]; then
echo "starting pcscd in backgroud" echo "starting pcscd in backgroud"
pcscd --debug --apdu pcscd --debug --apdu