File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ is_active()
1717
1818install ()
1919{
20- apt_install btrfs-tools
20+ apt_install btrfs-progs
2121}
2222
2323configure ()
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Vagrant.configure("2") do |config|
3030 sudo su
3131 set -e
3232 BRANCH=master
33- # BRANCH=devel # uncomment to install devel
33+ BRANCH=devel # uncomment to install devel
3434 apt-get update
3535 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git ca-certificates
3636
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ source build/buildlib.sh
1313
1414echo -e " \e[1m\n[ Build NCP Raspberry Pi ]\e[0m"
1515
16- URL=" https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2021-11-08/2021-10-30-raspios-bullseye-arm64-lite.zip "
16+ URL=" https://raspi.debian.net/tested/20210823_raspi_4_bullseye.img.xz "
1717SIZE=4G # Raspbian image size
1818# CLEAN=0 # Pass this envvar to skip cleaning download cache
1919IMG=" NextCloudPi_RPi_$( date " +%m-%d-%y" ) .img"
Original file line number Diff line number Diff line change @@ -273,8 +273,8 @@ function download_raspbian()
273273{
274274 local URL=$1
275275 local IMGFILE=$2
276- local IMG_CACHE=cache/raspios_lite .img
277- local ZIP_CACHE =cache/raspios_lite.zip
276+ local IMG_CACHE=cache/rpi_debian .img
277+ local XZ_CACHE =cache/rpi_debian.img.xz
278278
279279 echo -e " \n\e[1m[ Download RaspiOS ]\e[0m"
280280 mkdir -p cache
@@ -283,14 +283,13 @@ function download_raspbian()
283283 cp -v --reflink=auto $IMG_CACHE " $IMGFILE " && \
284284 return 0
285285
286- test -f " $ZIP_CACHE " && {
287- echo -e " INFO: $ZIP_CACHE already exists. Skipping download ..."
286+ test -f " $XZ_CACHE " && {
287+ echo -e " INFO: $XZ_CACHE already exists. Skipping download ..."
288288 } || {
289- wget " $URL " -O " $ZIP_CACHE " || return 1
289+ wget " $URL " -O " $XZ_CACHE " || return 1
290290 }
291291
292- unzip -o " $ZIP_CACHE " && \
293- mv * -raspios-* .img $IMG_CACHE && \
292+ unxz -c " $XZ_CACHE " > " $IMG_CACHE " && \
294293 cp -v --reflink=auto $IMG_CACHE " $IMGFILE "
295294}
296295
Original file line number Diff line number Diff line change 1919# More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/
2020#
2121
22+ source /usr/local/etc/library.sh # refresh NCPCFG RELEASE PHPVER
23+
2224APTINSTALL=" apt-get install -y --no-install-recommends"
2325export DEBIAN_FRONTEND=noninteractive
2426
2527install ()
2628{
29+ set -x # TODO
2730 apt-get update
2831 $APTINSTALL apt-utils cron curl
2932 $APTINSTALL apache2
You can’t perform that action at this time.
0 commit comments