1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

do not shadow directory selection

This commit is contained in:
George Hunt 2018-03-13 17:11:46 -04:00
parent b1f5a078b1
commit ddfa291803
2 changed files with 3 additions and 2 deletions

View file

@ -13,6 +13,8 @@ source /etc/iiab/iiab.env
case $IIAB_USB_LIB_SHOW_ALL in
'True'|'true'|'TRUE')
logger -p user.notice -t "70-usb-library" -- "Displaying root directory on $UM_MOUNTPOINT."
# regularize the variable
IIAB_USB_LIB_SHOW_ALL=True
;;
*)
logger -p user.notice -t "70-usb-library" -- "Looking for /share, /Share, /Piratebox/Share, /USB, or /usb on $UM_MOUNTPOINT."
@ -39,7 +41,7 @@ fi
if [ -d $UM_MOUNTPOINT/usb ]; then
SHARE_DIR="$UM_MOUNTPOINT/usb"
fi
if [ -d $UM_MOUNTPOINT ]; then
if [ "$IIAB_USB_LIB_SHOW_ALL" == "True" ]; then
SHARE_DIR="$UM_MOUNTPOINT"
fi

View file

@ -19,4 +19,3 @@ sshd_service: ssh
php_version: 7.1
postgresql_version: 9.6
systemd_location: /lib/systemd/system
iiab_usb_lib_show_all: True