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

13 lines
473 B
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
cakisan=php7
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/php7.ini.$nokta
[ -f /etc/php-fpm.conf ] && cp /etc/php-fpm.conf /var/lib/pkg/koruma/php7-fpm.conf.$nokta
[ -f /etc/pear.conf ] && cp /etc/pear.conf /var/lib/pkg/koruma/pear7.conf.$nokta
mps -sz $cakisan
else
echo "çakışan $cakisan paketi mevcut degil."
fi