This repository has been archived on 2024-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
clic-rpi-image/stage0/01-configure-apt/00-run.sh

18 lines
493 B
Bash
Raw Normal View History

2016-04-11 06:29:41 +00:00
#!/bin/bash -e
install -m 644 files/sources.list ${ROOTFS_DIR}/etc/apt/
install -m 644 files/raspi.list ${ROOTFS_DIR}/etc/apt/sources.list.d/
if [ -n "$APT_PROXY" ]; then
install -m 644 files/51cache ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache
sed ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache -i -e "s|APT_PROXY|${APT_PROXY}|"
else
rm -f ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache
fi
on_chroot apt-key add - < files/raspberrypi.gpg.key
on_chroot << EOF
2016-04-11 06:29:41 +00:00
apt-get update
apt-get dist-upgrade -y
EOF