1
0
mirror of https://git.libreschool.org/paspo/brasatore.git synced 2025-12-14 01:19:38 +00:00
Files
brasatore/roles/pxeserver/templates/iso/mount-all.sh
2023-10-26 23:13:17 +02:00

10 lines
255 B
Bash
Executable File

#!/bin/bash
montami() {
B=$(basename $1)
mount "/srv/pxe/iso/$B" "/srv/pxe/mount/$B"
echo "mounted '/srv/pxe/iso/$B' on '/srv/pxe/mount/$B'"
}
export -f montami
find /srv/pxe/mount/ -mindepth 1 -maxdepth 1 -type d -exec bash -c 'montami "$0"' {} \;