removed /etc and /opt

This commit is contained in:
cutemeli
2025-12-22 10:48:14 +00:00
parent 5ce7ca2c5d
commit 10d1afbb17
32559 changed files with 0 additions and 6756692 deletions

View File

@@ -1,2 +0,0 @@
# DO NOT EDIT OR REMOVE
# This file is a simple placeholder to keep dpkg from removing this directory

View File

@@ -1,10 +0,0 @@
#!/bin/sh
### Copyright 1999-2025. WebPros International GmbH. All rights reserved.
/opt/psa/bin/sw-engine-pleskrun /opt/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1
/opt/psa/bin/mysqldump.sh >/dev/null 2>&1
/usr/lib/plesk-9.0/preupgrade_backup_cleaner 7 days 'mysql.pre-rdbms-upgrade.*.dump.gz' >/dev/null 2>&1
/usr/lib/plesk-9.0/preupgrade_backup_cleaner 7 days 'mysql.repair-innodb.*.d' >/dev/null 2>&1
/usr/lib/plesk-9.0/preupgrade_backup_cleaner 365 days 'mysql.pre*.dump.gz' >/dev/null 2>&1

View File

@@ -1,18 +0,0 @@
#!/bin/bash
### Copyright 1999-2025. WebPros International GmbH. All rights reserved.
sa_update()
{
/usr/bin/sa-update -D
local rc="$?"
case $rc in
# Only restart spamd if sa-update returns 0, meaning it updated the rules
0) env PATH=/opt/psa/admin/sbin:/usr/local/psa/admin/sbin:$PATH spammng --condrestart ;;
# If sa-update returns 1 then there are no updates
1) exit 0 ;;
esac
return $rc
}
sa_update >> /var/log/sa-update.log 2>&1

View File

@@ -1,25 +0,0 @@
#!/bin/sh
# run htcacheclean if set to 'cron' mode
set -e
set -u
type htcacheclean > /dev/null 2>&1 || exit 0
[ -e /etc/default/apache-htcacheclean ] || exit 0
# edit /etc/default/apache-htcacheclean to change this
HTCACHECLEAN_MODE=daemon
HTCACHECLEAN_RUN=auto
HTCACHECLEAN_SIZE=300M
HTCACHECLEAN_PATH=/var/cache/apache2/mod_cache_disk
HTCACHECLEAN_OPTIONS=""
. /etc/default/apache-htcacheclean
[ "$HTCACHECLEAN_MODE" = "cron" ] || exit 0
htcacheclean ${HTCACHECLEAN_OPTIONS} \
-p${HTCACHECLEAN_PATH} \
-l${HTCACHECLEAN_SIZE}

View File

@@ -1,5 +0,0 @@
#!/bin/sh -e
# clean all crash reports which are older than a week.
[ -d /var/crash ] || exit 0
find /var/crash/. ! -name . -prune -type f \( \( -size 0 -a \! -name '*.upload*' -a \! -name '*.drkonqi*' \) -o -mtime +7 \) -exec rm -f -- '{}' \;
find /var/crash/. ! -name . -prune -type d -regextype posix-extended -regex '.*/[0-9]{12}$' \( -mtime +7 \) -exec rm -Rf -- '{}' \;

View File

@@ -1,55 +0,0 @@
#!/bin/sh
set -e
# Systemd systems use a systemd timer unit which is preferable to
# run. We want to randomize the apt update and unattended-upgrade
# runs as much as possible to avoid hitting the mirrors all at the
# same time. The systemd time is better at this than the fixed
# cron.daily time
if [ -d /run/systemd/system ]; then
exit 0
fi
check_power()
{
# laptop check, on_ac_power returns:
# 0 (true) System is on main power
# 1 (false) System is not on main power
# 255 (false) Power status could not be determined
# Desktop systems always return 255 it seems
if command -v on_ac_power >/dev/null; then
if on_ac_power; then
:
elif [ $? -eq 1 ]; then
return 1
fi
fi
return 0
}
# sleep for a random interval of time (default 30min)
# (some code taken from cron-apt, thanks)
random_sleep()
{
RandomSleep=1800
eval $(apt-config shell RandomSleep APT::Periodic::RandomSleep)
if [ $RandomSleep -eq 0 ]; then
return
fi
if [ -z "$RANDOM" ] ; then
# A fix for shells that do not have this bash feature.
RANDOM=$(( $(dd if=/dev/urandom bs=2 count=1 2> /dev/null | cksum | cut -d' ' -f1) % 32767 ))
fi
TIME=$(($RANDOM % $RandomSleep))
sleep $TIME
}
# delay the job execution by a random amount of time
random_sleep
# ensure we don't do this on battery
check_power || exit 0
# run daily job
exec /usr/lib/apt/apt.systemd.daily

View File

@@ -1,4 +0,0 @@
#!/bin/bash
### Copyright 1999-2025. WebPros International GmbH. All rights reserved.
/usr/lib/plesk-9.0/dmarc_aggregate_report

View File

@@ -1,8 +0,0 @@
#!/bin/sh
# Skip if systemd is running.
if [ -d /run/systemd/system ]; then
exit 0
fi
/usr/libexec/dpkg/dpkg-db-backup

View File

@@ -1,14 +0,0 @@
#!/bin/sh
update_scr="/opt/drweb/update.pl"
outfile=`mktemp /tmp/drweb-update.XXXXXX`
[ -x "${update_scr}" ] || exit 0
trap 'rm -f $outfile;' TERM INT EXIT
"${update_scr}" >$outfile 2>&1
rc=$?
[ $rc -eq 0 ] || cat $outfile
exit $rc

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# skip in favour of systemd timer
if [ -d /run/systemd/system ]; then
exit 0
fi
# this cronjob persists removals (but not purges)
if [ ! -x /usr/sbin/logrotate ]; then
exit 0
fi
/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
/usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit $EXITVALUE

View File

@@ -1,50 +0,0 @@
#!/bin/sh
#
# man-db cron daily
set -e
if [ -d /run/systemd/system ]; then
# Skip in favour of systemd timer.
exit 0
fi
# This should be set by cron, but apparently isn't always; see
# https://bugs.debian.org/209185. Add fallbacks so that start-stop-daemon
# can be found.
export PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
iosched_idle=
# Don't try to change I/O priority in a vserver or OpenVZ.
if ! grep -Eq '(envID|VxID):.*[1-9]' /proc/self/status && \
{ [ ! -d /proc/vz ] || [ -d /proc/bc ]; }; then
iosched_idle='--iosched idle'
fi
if ! [ -d /var/cache/man ]; then
# Recover from deletion, per FHS.
install -d -o man -g man -m 0755 /var/cache/man
fi
# expunge old catman pages which have not been read in a week
if [ -d /var/cache/man ]; then
cd /
# shellcheck disable=SC2086
start-stop-daemon --start --pidfile /dev/null --startas /bin/sh \
--oknodo --chuid man $iosched_idle -- -c \
"find /var/cache/man -type f -name '*.gz' -atime +6 -print0 | \
xargs -r0 rm -f"
fi
# regenerate man database
if [ -x /usr/bin/mandb ]; then
# --pidfile /dev/null so it always starts; mandb isn't really a daemon,
# but we want to start it like one.
# shellcheck disable=SC2086
start-stop-daemon --start --pidfile /dev/null \
--startas /usr/bin/mandb --oknodo --chuid man \
$iosched_idle \
-- --no-purge --quiet
fi
exit 0

View File

@@ -1,15 +0,0 @@
#!/bin/sh
### Copyright 1999-2025. WebPros International GmbH. All rights reserved.
# discover "/opt/psa/var/health/data/*/$target-*" directories
# and remove rrd databases which have not being updated for a month
# also remove directories which became empty
# "disk", "df", and "interface" targets may refer to unmounted devices
# "plesk_cgroups" target may refer to removed users
for target in "disk" "df" "interface" "plesk_cgroups"; do
/usr/bin/find "/opt/psa/var/health/data" -mindepth 2 -maxdepth 2 -type d -name "${target}-*" | while read -r target_rrd_d; do
/usr/bin/find "$target_rrd_d" -mindepth 1 -maxdepth 1 -name "*.rrd" -type f -mtime +30 -delete
/usr/bin/find "$target_rrd_d" -maxdepth 0 -type d -empty -delete
done
done

View File

@@ -1,4 +0,0 @@
#!/bin/sh
# This task was disabled by psa-spamassassin package
exit 0

View File

@@ -1,22 +0,0 @@
#!/bin/sh
# Generate a daily summary of process accounting. Since this will probably
# get kicked off in the morning, it is run against the previous day data.
set -e
# Our configuration file
DEFAULT=/etc/default/sysstat
# Default settings, overridden in the above file
ENABLED=false
# Skip in favour of systemd timer
[ ! -d /run/systemd/system ] || exit 0
[ -x /usr/lib/sysstat/sa2 ] || exit 0
# Read our config
[ -r "$DEFAULT" ] && . "$DEFAULT"
[ "$ENABLED" = "true" ] || exit 0
exec /usr/lib/sysstat/sa2 -A