Package php8.0: Scripts

Post install

1
2
3
4
5
6
7
if [ -x /usr/share/php/scripts/php_postin.sh ]; then 
    export php_servicedir=/usr/share/php/8.0/service 
    export php_sysconfdir=/etc/php/8.0 
    export php_extconf=/usr/share/php/8.0/extconf 
    export sapiList=cli 
    /usr/share/php/scripts/php_postin.sh 
fi
Pre uninstall

if [ $1 = 0 ]; then 
    if [ -x /usr/share/php/scripts/php_preun.sh ]; then 
        export php_servicedir=/usr/share/php/8.0/service 
	export php_sysconfdir=/etc/php/8.0 
	export php_extconf=/usr/share/php/8.0/extconf 
	export sapiList=cli 
	/usr/share/php/scripts/php_preun.sh 
    fi 
    find /etc/php/8.0/cli -type f -name '*.phpnew' -or -name '*.rpmnew' -delete 
fi