#!/bin/bash
rm -rf /opt/scripts/ahenk-update
sed -i '/ahenk-update/c\' /etc/crontab
rm -rf /etc/apt/sources.list.d/*
echo "deb http://ftp.pardus.org.tr/etap yenikusak main contrib non-free" > /etc/apt/sources.list
wget http://depo.pardus.org.tr/pardus-yenikusak-public.asc
apt-key add pardus-yenikusak-public.asc
wget http://depo.pardus.org.tr/pardus/pool/main/p/pardus-archive-keyring/pardus-archive-keyring_2017.2_all.deb
dpkg -i pardus-archive-keyring_2017.2_all.deb
mkdir -p /etc/apt/apt.conf.d
echo "Acquire::Languages \"none\";" > /etc/apt/apt.conf.d/99translations
rm -rf /var/lib/apt/lists/lock
apt-get update
apt-get purge ahenk -y
apt-get autoremove -y
echo 'e' | DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::='--force-confold' --force-yes -fuy dist-upgrade
rm -rf pardus-yenikusak-public.asc
rm -rf pardus-archive-keyring_2017.2_all.deb
