HEX
Server: nginx/1.29.3
System: Linux mail.sarafai.ru 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: dl,exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /var/lib/dpkg/info/fstrim-blocks.postinst
#!/bin/bash

set -e

mkdir -p /etc/cron.weekly

cat <<EOT > /etc/cron.weekly/fstrim-blocks-job
#!/bin/bash

set -e

flock -w1 /tmp/fstrim-blocks /usr/bin/timeout 3600 /usr/bin/fstrim-blocks -t 600 -i 10 -b 1073741824
EOT

chown root:root /etc/cron.weekly/fstrim-blocks-job
chmod 0755 /etc/cron.weekly/fstrim-blocks-job