Update resize_journal.sh

This commit is contained in:
spiritLHLS 2022-12-18 11:39:23 +08:00 committed by GitHub
parent 2e3b3561a3
commit 1e08c5af81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,9 +12,12 @@ head() {
echo "# ${GREEN}作者${PLAIN}: spiritlhl #"
echo "# ${GREEN}作仓库${PLAIN}: https://github.com/spiritLHLS/one-click-installation-script #"
echo "#######################################################################"
echo "支持系统Ubuntu 12+Debian 6+"
echo "自定义修改大小单位为MB一般500M或者1G即可有的系统日志默认给了5G甚至更多,不是做站啥的没必要"
echo "支持系统Ubuntu 18+Debian 8+centos 7+FedoraAlmalinux 8.5+
echo "1.自定义修改大小单位为MB一般500或者1000即可有的系统日志默认给了5000甚至更多,不是做站啥的没必要"
echo "请注意修改journal目录大小可能会影响系统日志的记录。因此在修改 journal 目录大小之前,建议先备份系统日志到本地"
echo "2.运行脚本同时设置系统日志保留日期时长,超过日期时长的日志将被清除"
echo "3.同时修改日志只记录warning等级"
echo "4.以后日志的产生将受到日志文件大小,日志保留时间,日志保留等级的限制"
# Display prompt asking whether to proceed with changing
reading "Do you want to proceed with changing? [y/n] " confirm
echo ""