merge the logrotate scripts

This commit is contained in:
Girish Ramakrishnan
2017-09-12 21:45:42 -07:00
parent 9710f74250
commit c8750a3bed
6 changed files with 47 additions and 63 deletions

View File

@@ -18,8 +18,7 @@ scripts=("${SOURCE_DIR}/src/scripts/rmappdir.sh" \
"${SOURCE_DIR}/src/scripts/configurecollectd.sh" \
"${SOURCE_DIR}/src/scripts/authorized_keys.sh" \
"${SOURCE_DIR}/src/scripts/node.sh" \
"${SOURCE_DIR}/src/scripts/mvlogrotateconfig.sh" \
"${SOURCE_DIR}/src/scripts/rmlogrotateconfig.sh")
"${SOURCE_DIR}/src/scripts/configurelogrotate.sh")
for script in "${scripts[@]}"; do
if [[ $(sudo -n "${script}" --check 2>/dev/null) != "OK" ]]; then