Clean up net logs (#6813)
This commit is contained in:
parent
5bd05fba09
commit
807af8670e
|
@ -1,2 +1,2 @@
|
|||
/config/
|
||||
/log/
|
||||
/log
|
||||
|
|
|
@ -17,6 +17,8 @@ netLogDir="$netDir"/log
|
|||
if [[ -d $netLogDir && ! -L $netLogDir ]]; then
|
||||
echo "Warning: moving $netLogDir to make way for symlink."
|
||||
mv "$netLogDir" "$netDir"/log.old
|
||||
elif [[ -L $netLogDir ]]; then
|
||||
rm "$netLogDir"
|
||||
fi
|
||||
mkdir -p "$netConfigDir" "$netLogDateDir"
|
||||
ln -sf "$netLogDateDir" "$netLogDir"
|
||||
|
@ -131,4 +133,3 @@ _setup_secondary_mount() {
|
|||
fi
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue