Prevent more out of space issues in var/log during RP4 upgrades

This commit is contained in:
Taylor Helsper 2020-10-05 13:11:09 -05:00
parent 53911ec1d7
commit 41e8916753

View File

@ -15,6 +15,10 @@ date
# Delete ramlog to prevent ram issues (remake necessary folders)
rm -rf /var/log/*
mkdir -p /var/log/nginx
if [ $IS_RASPI = 1 ]; then
log2ram write || true
log2ram stop || true
fi
# Create any necessary users