2017-04-24 02:34:23 +02:00
|
|
|
. /root/bin/mps
|
2017-11-01 03:18:53 +01:00
|
|
|
if [ -d /var/lib/pkg/DB/php ]; then
|
2017-04-24 02:34:23 +02:00
|
|
|
echo "eski php sürümü siliniyor."
|
|
|
|
mps sil php
|
|
|
|
nokta=`date +%m-%d-%y.%H%M%S`
|
|
|
|
mkdir -p /var/lib/pkg/koruma
|
2017-11-01 03:18:53 +01:00
|
|
|
[ -f /etc/php.ini ] && cp /etc/php.ini /var/lib/pkg/koruma/php.ini.$nokta
|
|
|
|
[ -f /etc/php-fpm.conf ] && cp /etc/php-fpm.conf /var/lib/pkg/koruma/php-fpm.conf.$nokta
|
|
|
|
[ -f /etc/pear.conf ] && cp /etc/pear.conf /var/lib/pkg/koruma/pear.conf.$nokta
|
2017-04-24 02:34:23 +02:00
|
|
|
else
|
|
|
|
echo "eski php sürümü mevcut degil."
|
|
|
|
fi
|