build/armbian/armbian.sh: Make sure to stop dockerd after installation

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
Tobias K 2024-01-07 10:32:57 +01:00
parent 7fcd26a98b
commit 9b7602540d
No known key found for this signature in database
GPG Key ID: 44FD368932E645C1
4 changed files with 16 additions and 5 deletions

View File

@ -28,10 +28,10 @@ install()
$APTINSTALL lbzip2 iputils-ping jq wget
# NOTE: php-smbclient in sury but not in Debian sources, we'll use the binary version
# https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/external_storage/smb.html
$APTINSTALL -t $RELEASE smbclient exfat-fuse exfat-utils # for external storage \
php${PHPVER}-exif # for gallery \
php${PHPVER}-bcmath # for LDAP \
php${PHPVER}-gmp # for bookmarks
$APTINSTALL -t $RELEASE smbclient exfat-fuse exfat-utils `# for external storage` \
php${PHPVER}-exif `# for gallery` \
php${PHPVER}-bcmath `# for LDAP` \
php${PHPVER}-gmp `# for bookmarks`
#$APTINSTALL -t imagemagick php${PHPVER}-imagick ghostscript # for gallery

View File

@ -16,7 +16,7 @@ install()
apt-get install --no-install-recommends -y dnsmasq
rc=0
service dnsmasq status > /dev/null 2>&1 || rc=$?
! is_docker && [[ $rc -eq 3 ]] && ! [[ "$INIT_SYSTEM" =~ ^("chroot"|"unknown")$ ]] && {
! is_docker && [[ $rc -eq 3 ]] && ! [[ "$INIT_SYSTEM" =~ ^("chroot"|"unknown"|"armbian-build")$ ]] && {
echo "Applying workaround for dnsmasq bug (compare issue #1446)"
service systemd-resolved stop || true
service dnsmasq start

View File

@ -31,8 +31,17 @@ echo -e "\nInstalling NextCloudPi"
hostname -F /etc/hostname # fix 'sudo resolve host' errors
teardown_docker() {
pkill containerd dockerd
}
trap teardown_docker EXIT 1 2 3 15
CODE_DIR="$(pwd)" DBG=x bash install.sh
teardown_docker
trap '' EXIT 1 2 3 15
echo -e "\nPostinstall..."
run_app_unsafe post-inst.sh

View File

@ -40,6 +40,8 @@ install() {
fi
done
[[ "$success" == "true" ]] || exit 1
docker rmi hello-world:latest
}
configure() { :; }