mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
[fix] Correct indent in create_local_directories()
This commit is contained in:
@@ -485,17 +485,17 @@ copy_ssh_key() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
create_local_directories() {
|
create_local_directories() {
|
||||||
echo "Creating local pillar and salt directories"
|
echo "Creating local pillar and salt directories"
|
||||||
PILLARSALTDIR=${SCRIPTDIR::-5}
|
PILLARSALTDIR=${SCRIPTDIR::-5}
|
||||||
for i in "pillar" "salt"; do
|
for i in "pillar" "salt"; do
|
||||||
for d in `find $PILLARSALTDIR/$i -type d`; do
|
for d in $(find $PILLARSALTDIR/$i -type d); do
|
||||||
suffixdir=${d//$PILLARSALTDIR/}
|
suffixdir=${d//$PILLARSALTDIR/}
|
||||||
if [ ! -d "$local_salt_dir/$suffixdir" ]; then
|
if [ ! -d "$local_salt_dir/$suffixdir" ]; then
|
||||||
mkdir -v "$local_salt_dir$suffixdir" >> "$setup_log" 2>&1
|
mkdir -v "$local_salt_dir$suffixdir" >> "$setup_log" 2>&1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
chown -R socore:socore "$local_salt_dir/$i"
|
chown -R socore:socore "$local_salt_dir/$i"
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user