mirror of
https://github.com/hackacad/bastille.git
synced 2026-03-29 05:04:32 +02:00
bootstrap: Ensure proper bastille_prefix mounting if the directory exists
This commit is contained in:
@@ -78,6 +78,11 @@ bootstrap_directories() {
|
||||
mkdir -p "${bastille_prefix}"
|
||||
fi
|
||||
chmod 0750 "${bastille_prefix}"
|
||||
# Make sure the dataset is mounted in the proper place
|
||||
elif [ -d "${bastille_prefix}" ]; then
|
||||
if [ "$(zfs get -H -o value mountpoint ${bastille_zfs_zpool}/${bastille_zfs_prefix})" != "${bastille_prefix}" ]; then
|
||||
zfs set mountpoint="${bastille_prefix}" "${bastille_zfs_zpool}/${bastille_zfs_prefix}"
|
||||
fi
|
||||
fi
|
||||
|
||||
## ${bastille_backupsdir}
|
||||
|
||||
Reference in New Issue
Block a user