Files
apk/setup.sh
anorien90 daba599740
Some checks failed
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Failing after 6m11s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 10s
fixed init_rc and added it to general setup
2025-12-09 16:35:49 +01:00

35 lines
736 B
Bash
Executable File

#!/bin/bash
# Detect the distribution and run the appropriate package installation script either for pacman or apt
if [ -f /etc/os-release ]; then
. /etc/os-release
DISTRO=$ID
else
echo "Cannot detect the distribution."
exit 1
fi
case "$DISTRO" in
arch|manjaro)
echo "Detected Arch-based distribution. Running pacman setup..."
bash dist/pacman.sh
;;
ubuntu|debian)
echo "Detected Debian-based distribution. Running apt setup..."
bash dist/apt.sh
;;
*)
echo "Unsupported distribution: $DISTRO"
exit 1
;;
esac
# Initialize shell configuration
echo "Initializing shell configuration..."
bash dist/init_rc.sh
echo "Setup completed."