mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
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:
parent
7fcd26a98b
commit
9b7602540d
@ -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
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user