mirror of
https://github.com/spiritLHLS/one-click-installation-script.git
synced 2024-11-16 13:52:18 +08:00
Update resize_journal.sh
This commit is contained in:
parent
e77c5976f9
commit
a853128dc4
|
@ -45,6 +45,7 @@ main() {
|
|||
echo "Failed to set journal size using systemd-journal-size"
|
||||
else
|
||||
success=true
|
||||
echo "1 success"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -55,6 +56,7 @@ main() {
|
|||
echo "Failed to set journal size using journalctl"
|
||||
else
|
||||
success=true
|
||||
echo "2 success"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -83,6 +85,7 @@ main() {
|
|||
echo "Failed to set journal size using journald.conf"
|
||||
else
|
||||
success=true
|
||||
echo "3.1 success"
|
||||
fi
|
||||
|
||||
# Check if the line containing ForwardToSyslog is commented out
|
||||
|
@ -97,6 +100,7 @@ main() {
|
|||
echo "Failed to set ForwardToSyslog to no in journald.conf"
|
||||
else
|
||||
success=true
|
||||
echo "3.2 success"
|
||||
fi
|
||||
|
||||
# Restore the original permissions of the file
|
||||
|
|
Loading…
Reference in New Issue
Block a user