void-bash-installer/modules/20-installation/install

39 lines
821 B
Plaintext
Raw Normal View History

2021-03-11 14:04:04 +01:00
module start "installation" "Installation" "dontcheck"
2021-03-12 19:38:41 +01:00
mkdir -p "${dest}"/var/db/xbps
cp -rf /var/db/xbps/keys "${dest}"/var/db/xbps
2021-03-11 14:04:04 +01:00
if [[ "${#ignorepkg[@]}" -gt 0 ]]; then
mkdir -p "${dest}"/etc/xbps.d/
touch "${dest}"/etc/xbps.d/10-ignore-pkg.conf
for ig in "${ignorepkg[@]}"; do
if ! grep -q "${ig}" "${dest}"/etc/xbps.d/10-ignore-pkg.conf; then
echo "ignorepkg=${ig}" >> "${dest}"/etc/xbps.d/10-ignore-pkg.conf
fi
done
fi
2021-03-12 14:20:23 +01:00
echo ""
echo "pkg install: ${pkg[@]}"
echo ""
echo ""
echo "recent fingerprint: 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d"
echo ""
2021-03-12 16:46:31 +01:00
for i in ${pkg[@]}; do
for j in ${removepkg[@]}; do
2021-03-12 16:48:31 +01:00
if [[ "${i}" == "${j}" ]]; then
2021-03-12 16:46:31 +01:00
continue 2
fi
done
toinstall+=( "$i" )
done
2021-03-12 17:05:15 +01:00
if [[ "${#toinstall[@]}" -gt 0 ]]; then
inst "${toinstall[@]}"
2021-03-11 15:12:19 +01:00
else
echo nothing to do
fi
2021-03-11 14:04:04 +01:00
module end