committing changes in /etc made by "bash i360deploy.sh --uninstall"

Package changes:
This commit is contained in:
2023-02-13 12:13:05 +02:00
parent df88f452e8
commit bfb4916e2b
111 changed files with 17 additions and 2057 deletions

View File

@@ -1,33 +0,0 @@
#!/bin/bash
LOG_FILE=${1:-/var/log/cloudlinux-backup-utils-cron.log}
log() {
echo "$(date -u): ${*}" >>"${LOG_FILE}"
}
refresh_token_if_present() {
backend=${1}
token_file=/var/restore_infected/${backend}_api_token.json
if [ -f "${token_file}" ]; then
log "${backend}: refreshing auth token"
out=$(/usr/bin/restore_infected "${backend}" extra refresh_token 2>&1)
exit_code=$?
if [ "${exit_code}" != "0" ]; then
log "${out}"
log "Token refresh failed"
echo "${out}"
echo "Token refresh failed"
return 1
fi
log "Auth token refreshed"
else
log "${backend}: not initialized, skipping..."
fi
}
refresh_token_if_present acronis
refresh_token_if_present r1soft

View File

@@ -1,12 +0,0 @@
#!/bin/bash
/usr/bin/imunify360-agent check-domains > /dev/null 2>&1 || true
/opt/alt/python38/share/imunify360/scripts/report-command-error \
/usr/bin/yum update \
imunify-antivirus \
ai-bolit \
imunify-notifier \
--assumeyes > /dev/null 2>&1
/usr/bin/imunify-antivirus version > /dev/null 2>&1

View File

@@ -1,15 +0,0 @@
#!/bin/bash
/usr/bin/imunify360-agent check-domains > /dev/null 2>&1
/opt/alt/python38/share/imunify360/scripts/report-command-error \
/usr/bin/yum update \
imunify360-firewall \
cloudlinux-backup-utils \
ai-bolit \
imunify360-php-i360 \
imunify-realtime-av \
imunify-auditd-log-reader \
imunify360-webshield-bundle \
imunify360-pam \
imunify-notifier \
imunify360-unified-access-logger \
--assumeyes > /dev/null 2>&1

View File

@@ -1,7 +0,0 @@
#!/bin/bash
# -delete option implicitly uses -depth, which traverse folders with DFS
# (beginning with folder's content, ending with folder itself)
# so, if old folder contains old files, "directory is not empty" error won't happen.
# Old folder may not be deleted only if contains recently modified files
find -H /var/ossec/logs/{alerts/*,archives/*,firewall/*} -mtime +2 -not -name alerts.json -delete >/dev/null 2>&1
exit 0