Déplacement de l'instruction du background grub.
Ajout de la liste blorand et de sa cleg gpg à apt pour les maj. Ajout de la CA locale.
This commit is contained in:
6
debian/postinst
vendored
6
debian/postinst
vendored
@@ -5,13 +5,15 @@ set -e
|
||||
case "$1" in
|
||||
configure)
|
||||
if [ -e /usr/sbin/grub-mkconfig ] ; then
|
||||
GRUBDEFAULT="/etc/default/grub"
|
||||
GRUBDEFAULT="/etc/default/grub.d/blorand.cfg"
|
||||
if [ -e "$GRUBDEFAULT" ] ; then
|
||||
if (grep '^GRUB_BACKGROUND' "$GRUBDEFAULT" > /dev/null 2>&1) ; then
|
||||
sed -i 's@^GRUB_BACKGROUND.*$@GRUB_BACKGROUND="/usr/share/blorand/blorand.png"@g' "$GRUBDEFAULT"
|
||||
else
|
||||
echo 'GRUB_BACKGROUND="/usr/share/blorand/blorand.png"' >> "$GRUBDEFAULT"
|
||||
fi
|
||||
else
|
||||
echo 'GRUB_BACKGROUND="/usr/share/blorand/blorand.png"' >> "$GRUBDEFAULT"
|
||||
fi
|
||||
/usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg
|
||||
fi
|
||||
@@ -22,7 +24,9 @@ configure)
|
||||
fi
|
||||
done
|
||||
|
||||
install -Dvm 0644 /usr/share/blorand/BLORAND-CA_Root.crt /usr/local/share/ca-certificates/extra/BLORAND-CA_Root.crt
|
||||
install -Dvm 0755 /usr/share/blorand/blorand.profile /etc/profile.d/blorand.sh
|
||||
/usr/sbin/update-ca-certificates
|
||||
|
||||
;;
|
||||
|
||||
|
Reference in New Issue
Block a user