Commit d240faa8 authored by Volodymyr Melnyk's avatar Volodymyr Melnyk

Licking oneselve's balls

parent c071b387
......@@ -10,7 +10,7 @@ mib="${_mib_root}.10"
act="${1}"
req="${2}"
_log_file="${_log_dir}/snmp_stats.log"
_log_file="${_log_dir}/snmp_io_stats.log"
_log 1 "${act} ${req} requested"
......
......@@ -12,28 +12,28 @@ fi
systemd_service_config='/etc/systemd/system/save_io_stats.service'
if [[ ! -f "${systemd_service_config}" ]]; then
_log 1 "Installing systemd service configuration file"
_log 0 "Installing systemd service configuration file"
cat "${_share_dir}/systemd/save_io_stats.service" >"${systemd_service_config}"
fi
sudoers_config='/etc/sudoers.d/save_io_stats'
if [[ ! -f "${sudoers_config}" ]]; then
_log 1 "Installing sudoers configuration snippet"
_log 0 "Installing sudoers configuration snippet"
cat "${_share_dir}/sudoers/save_io_stats" >"${sudoers_config}"
fi
logrotate_config='/etc/logrotate.d/snmp_stats'
if [[ ! -f "${logrotate_config}" ]]; then
_log 1 "Installing logrotate configuration snippet"
_log 0 "Installing logrotate configuration snippet"
cat "${_share_dir}/logrotate/snmp_stats" >"${logrotate_config}"
fi
io_stats_spool="${_spool_dir}/io"
if [[ ! -f "${io_stats_spool}" ]]; then
_log 1 "Creating the spool directory"
_log 0 "Creating the spool directory"
mkdir -p "${io_stats_spool}"
chown root:nobody "${io_stats_spool}"
chmod 0770 "${io_stats_spool}"
fi
_log 1 "Installation steps have been completed"
_log 0 "Installation steps have been completed"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment