[fix] Make parent directories if needed

This commit is contained in:
William Wernert
2020-12-16 11:16:14 -05:00
parent 6ba3c16c75
commit 9c8fc5e6ed

View File

@@ -719,7 +719,7 @@ create_local_directories() {
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 -pv "$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"