Skip to content

Commit

Permalink
Merge pull request #2 from borpin/patch-2
Browse files Browse the repository at this point in the history
Delete the folder /var/log/journal if present
  • Loading branch information
TrystanLea authored Feb 8, 2023
2 parents 765238b + 197c767 commit 1d97186
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env sh

# Under latest RPi-OS the folder /var/log/journal is created so journald reverts to persistent journal files
# Delete this folder and restart service
if [ -d /var/log/journal ]; then
echo "/var/log/journal present - remove for volatile journal files"
sudo rm -rf /var/log/journal
sudo systemctl restart systemd-journald
fi

systemctl -q is-active log2ram && { echo "ERROR: log2ram service is still running. Please run \"sudo service log2ram stop\" to stop it."; exit 1; }
[ "$(id -u)" -eq 0 ] || { echo "You need to be ROOT (sudo can be used)"; exit 1; }

Expand Down

0 comments on commit 1d97186

Please sign in to comment.