From 1c5d343171b51fd923d38a2a5b65cc765a0ec04c Mon Sep 17 00:00:00 2001 From: Yaazkal Date: Sun, 5 Dec 2021 08:56:59 -0500 Subject: [PATCH] [REF] bootsrap: Removes code duplication to prevent future errors --- usr/local/share/bastille/bootstrap.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/usr/local/share/bastille/bootstrap.sh b/usr/local/share/bastille/bootstrap.sh index 269e1b37..c05b02a4 100644 --- a/usr/local/share/bastille/bootstrap.sh +++ b/usr/local/share/bastille/bootstrap.sh @@ -103,12 +103,11 @@ bootstrap_directories() { if [ "${bastille_zfs_enable}" = "YES" ];then if [ -n "${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}" - chmod 0750 "${bastille_prefix}" fi + chmod 0750 "${bastille_prefix}" fi ## ${bastille_backupsdir} @@ -116,12 +115,11 @@ bootstrap_directories() { if [ "${bastille_zfs_enable}" = "YES" ];then if [ -n "${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}" - chmod 0750 "${bastille_backupsdir}" fi + chmod 0750 "${bastille_backupsdir}" fi ## ${bastille_cachedir}