milis/talimatname/genel/p/php7/php7.kos-kur

13 lines
469 B
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
cakisan=php
if [ -d /var/lib/pkg/DB/$cakisan ]; then
echo "php7 sürümü siliniyor."
nokta=`date +%m-%d-%y.%H%M%S`
mkdir -p /var/lib/pkg/koruma
[ -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
mps -sz $cakisan
else
echo "çakışan $cakisan paketi mevcut degil."
fi