Heray-Was-Here
Server : nginx/1.30.2
System : Linux elegant-dhawan.198-71-59-75.plesk.page 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64
User : realtyna_guys ( 10000)
PHP Version : 8.2.31
Disable Function : opcache_get_status
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/lib/dpkg/info/awstats.postinst
#! /bin/sh

set -e

case "$1" in
    configure)
	if [ ! -d /var/lib/awstats ]; then
		if [ -d /var/cache/awstats ]; then
			mv /var/cache/awstats /var/lib/awstats
		fi
		mkdir -p /var/lib/awstats
		chown www-data:www-data /var/lib/awstats
		chmod 750 /var/lib/awstats
	fi
	if [ ! -d /var/cache/awstats ]; then
		mkdir -p /var/cache/awstats
		chown www-data:www-data /var/cache/awstats
		chmod 750 /var/cache/awstats
	fi
	# clean-up old script that didn't run
	if [ -n "$2" ]; then
	    if dpkg --compare-versions "$2" lt '7.8-1~'; then
		rm -f /etc/logrotate.d/httpd-prerotate/awstats/prerotate.sh
		rmdir /etc/logrotate.d/httpd-prerotate/awstats/ || true
	    fi
	fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 0
    ;;
esac



exit 0

Hry