1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

Update roles/usb_lib/templates/iiab-clean-usb.sh

to restore previous search-ability

Co-authored-by: A Holt <holta@users.noreply.github.com>
This commit is contained in:
Jerry Vonau 2025-01-29 08:59:24 -06:00
parent 76d5b5fc17
commit 190d66409f

View file

@ -5,7 +5,7 @@ DEVICE=$(echo $@ | sed -s 's|-|/|')
MNT_POINT=$(findmnt -n /$DEVICE | awk '{print $1}') MNT_POINT=$(findmnt -n /$DEVICE | awk '{print $1}')
CONTENT_LINK_USB=$(basename $MNT_POINT | awk '{print toupper($0)}') CONTENT_LINK_USB=$(basename $MNT_POINT | awk '{print toupper($0)}')
CONTENT_LINK="/library/www/html/local_content/$CONTENT_LINK_USB" CONTENT_LINK="/library/www/html/local_content/$CONTENT_LINK_USB"
logger -p user.notice -t "usb_lib (iiab-clean-usb.sh)" -- "Attempting to remove link $CONTENT_LINK." logger -p user.notice -t "usb_lib (iiab-clean-usb.sh)" -- "Attempting to remove link $CONTENT_LINK, as auto-created earlier by usbmount."
if [ -L $CONTENT_LINK ]; then if [ -L $CONTENT_LINK ]; then
/bin/rm $CONTENT_LINK /bin/rm $CONTENT_LINK