Files
patronageos/scripts/install_dependencies.sh
2025-12-08 10:17:25 -07:00

14 lines
287 B
Bash
Executable File

#install dependencies
if [ "$(id -u)" -ne 0 ]; then
echo "switching from $(id -un) to root"
exec sudo "$0" "$@"
fi
set -e
list="kpartx podman debootstrap "
apt update
for item in $list; do
apt install -y $item
done
cd "$(dirname "$0")"
find . -type f -name "*" -exec chmod +x {} +