Clean up net logs (#6813)

This commit is contained in:
Justin Starry 2019-11-08 10:25:17 -05:00 committed by GitHub
parent 5bd05fba09
commit 807af8670e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

2
net/.gitignore vendored
View File

@ -1,2 +1,2 @@
/config/
/log/
/log

View File

@ -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
)
}