mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-27 15:07:51 +02:00
create_local_directories in soup too
This commit is contained in:
@@ -179,6 +179,21 @@ copy_new_files() {
|
||||
cd /tmp
|
||||
}
|
||||
|
||||
create_local_directories() {
|
||||
info "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"
|
||||
fi
|
||||
done
|
||||
logCmd "chown -R socore:socore $local_salt_dir/$i"
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
disable_fastestmirror() {
|
||||
sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user