bootstrap chmod

This commit is contained in:
Sven R
2020-03-10 17:14:18 +01:00
parent 2fa9f34be6
commit ac96e8b6ec

View File

@@ -181,6 +181,7 @@ bootstrap_directories() {
if [ "${bastille_zfs_enable}" = "YES" ];then
if [ ! -z "${bastille_zfs_zpool}" ]; then
zfs create ${bastille_zfs_options} -o mountpoint=${bastille_prefix} ${bastille_zfs_zpool}/${bastille_zfs_prefix}
chmod 0750 "${bastille_prefix}"
fi
else
mkdir -p "${bastille_prefix}"
@@ -193,6 +194,7 @@ bootstrap_directories() {
if [ "${bastille_zfs_enable}" = "YES" ];then
if [ ! -z "${bastille_zfs_zpool}" ]; then
zfs create ${bastille_zfs_options} -o mountpoint=${bastille_backupsdir} ${bastille_zfs_zpool}/${bastille_zfs_prefix}/backups
chmod 0750 "${bastille_backupsdir}"
fi
else
mkdir -p "${bastille_backupsdir}"