Skip to content

Commit 217c16d

Browse files
committed
test
1 parent 431e8ae commit 217c16d

5 files changed

Lines changed: 12 additions & 10 deletions

File tree

bin/ncp/CONFIG/nc-datadir.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ is_active()
1717

1818
install()
1919
{
20-
apt_install btrfs-tools
20+
apt_install btrfs-progs
2121
}
2222

2323
configure()

build/Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

build/build-SD-rpi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ source build/buildlib.sh
1313

1414
echo -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"
1717
SIZE=4G # Raspbian image size
1818
#CLEAN=0 # Pass this envvar to skip cleaning download cache
1919
IMG="NextCloudPi_RPi_$( date "+%m-%d-%y" ).img"

build/buildlib.sh

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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

lamp.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@
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+
2224
APTINSTALL="apt-get install -y --no-install-recommends"
2325
export DEBIAN_FRONTEND=noninteractive
2426

2527
install()
2628
{
29+
set -x # TODO
2730
apt-get update
2831
$APTINSTALL apt-utils cron curl
2932
$APTINSTALL apache2

0 commit comments

Comments
 (0)