From 879fa64213e0b840e553052155abcf2fd8e296ed Mon Sep 17 00:00:00 2001 From: Peng Zhihui Date: Thu, 27 Feb 2014 17:18:58 +0800 Subject: [PATCH] Touch /var/log/errors before chown it. Give up chowning /etc/cron/weekly/, because the dir doesn't exist now. Chmod files under .history_log dir -> chmod -R .history_log dir, because no file under it. modified: install_shell/other.sh --- install_shell/other.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install_shell/other.sh b/install_shell/other.sh index 4c56599..0f12016 100755 --- a/install_shell/other.sh +++ b/install_shell/other.sh @@ -65,10 +65,11 @@ chown audadmin.audadmin /var/log/messages* chmod 644 /var/log/messages* chown audadmin.audadmin /var/log/auth* chmod 644 /var/log/auth* +touch /var/log/errors chown audadmin.audadmin /var/log/errors* chmod 644 /var/log/errors* chown -R audadmin.audadmin /etc/cron/daily/ -chown -R audadmin.audadmin /etc/cron/weekly/ +#chown -R audadmin.audadmin /etc/cron/weekly/ chown audadmin.audadmin /etc/logrotate.conf touch /var/lib/logrotate.status chown audadmin.audadmin /var/lib/logrotate.status @@ -131,7 +132,7 @@ if [ $? -ne 0 ];then echo "export HISTTIMEFORMAT" >> ~sysadmin/.bashrc fi if [ "${USER_SHELL}" == "tcsh" ];then - chmod -R 644 ${USER_HOME}/.history_log/* + chmod -R 644 ${USER_HOME}/.history_log/ else grep HISTTIMEFORMAT ${USER_HOME}/.bashrc &> /dev/null if [ $? -ne 0 ];then