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:
parent
b1f5a078b1
commit
ddfa291803
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue