bubbles/iso_configs/server/hooks/normal/0620-installapps.hook.chroot

18 lines
774 B
Plaintext
Raw Normal View History

#!/bin/bash
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppemrintOS Team (peppermintosteam@proton.me)
# Check if it's Debian (based on ID field)
if grep -q '^PRETTY_NAME="PeppermintOS Debian"' /etc/os-release && grep -q 'VERSION_CODENAME=bookworm' /etc/os-release; then
# Install software only if it's Debian and codename is bookworm
apt --yes install cockpit* || true
# Check if it's Devuan (based on ID field)
elif grep -q '^PRETTY_NAME="PeppermintOS Devuan' /etc/os-release && grep -q 'VERSION_CODENAME=daedalus' /etc/os-release; then
echo "This is Devuan distribution, and the codename is daedalus. Packages will not be installed."
else
echo "This distribution is not supported. Packages will not be installed."
fi