switcheroo-control/pika-sources/debian/postinst

32 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-07-25 16:57:35 +02:00
#!/bin/sh
set -e
rm -rf /etc/apt/sources.list.d/pika-* || true
rm -rf /etc/apt/preferences.d/*pika* || true
rm -f /etc/apt/sources.list.d/amdgpu.sources || true
rm -f /etc/apt/sources.list.d/amdvlk.sources || true
rm -f /etc/apt/sources.list.d/xtradeb-apps.sources || true
rm -f /etc/apt/sources.list.d/kubuntu-backports.sources || true
rm -f /etc/apt/sources.list.d/mozillateam-ppa.sources || true
rm -f /etc/apt/sources.list.d/rocm.sources || true
rm -f /etc/apt/sources.list.d/steam.sources || true
rm -f /etc/apt/sources.list.d/winehq.sources || true
rm -f /etc/apt/sources.list.d/xtradeb-play.sources || true
rm -f /etc/apt/preferences.d/0-pika-default-settings || true
rm -f /etc/apt/preferences.d/51-ppa-default-settings || true
rm -f /etc/apt/preferences.d/0-radeon-repo-settings || true
rm -f /etc/apt/sources.list.d/kisak-mesa.sources || true
cp -rf /usr/share/apt-pika/apt /etc/ || true
systemctl enable --now steam-repos-fix.service || echo "steam-repos-fix service could not be enabled"
mkdir -p /usr/share || echo "Path already exists!"
mkdir -p /usr/share/distro-info/ || echo "Path already exists!"
ln -sf /usr/share/distro-info/ubuntu.csv /usr/share/distro-info/pika.csv || echo "Link already exists!"
mkdir -p /usr/share/python-apt/templates/ || echo "Path already exists!"
ln -sf /usr/share/python-apt/templates/Ubuntu.info /usr/share/python-apt/templates/Pika.info || echo "Link already exists!"
ln -sf /usr/share/python-apt/templates/Ubuntu.mirrors /usr/share/python-apt/templates/Pika.mirrors || echo "Link already exists!"