mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
those functions in so-functions
This commit is contained in:
@@ -180,13 +180,13 @@ copy_new_files() {
|
||||
}
|
||||
|
||||
create_local_directories() {
|
||||
info "Creating local pillar and salt directories if needed"
|
||||
echo "Creating local pillar and salt directories if needed"
|
||||
PILLARSALTDIR=$1
|
||||
for i in "pillar" "salt"; do
|
||||
for d in $(find $PILLARSALTDIR/$i -type d); do
|
||||
suffixdir=${d//$PILLARSALTDIR/}
|
||||
if [ ! -d "$local_salt_dir/$suffixdir" ]; then
|
||||
logCmd "mkdir -pv $local_salt_dir$suffixdir"
|
||||
mkdir -pv $local_salt_dir$suffixdir
|
||||
fi
|
||||
done
|
||||
logCmd "chown -R socore:socore $local_salt_dir/$i"
|
||||
|
||||
Reference in New Issue
Block a user