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/ntpsec-ntpdate.postinst
#!/bin/sh

set -e

if [ "$1" = "install" ] && [ -z "$2" ]; then
	if [ -e /run/ntpdate.dhcp ]; then
		mkdir -p /run/ntpsec
		cp /run/ntpdate.dhcp /run/ntpsec/
	fi
elif [ "$1" = "install" -o "$1" = "upgrade" ] && [ -n "$2" ] &&
   dpkg --compare-versions "$2" le-nl "1.1.0+dfsg1-2~"; then

	if [ -e /run/ntpdate.dhcp ]; then
		mkdir -p /run/ntpsec
		mv -n /run/ntpdate.dhcp /run/ntpsec/
		rm -f /run/ntpdate.dhcp
	fi
fi