mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
install.sh: Only install systemd-resolved during NCP official image builds
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
665bfe154a
commit
80b63977f4
@ -66,7 +66,7 @@ systemd-run --user --scope -p "Delegate=yes" $LXC_CMD start ncp -q || \
|
||||
sudo systemd-run --scope -p "Delegate=yes" $LXC_CMD start ncp -q
|
||||
$LXC_CMD config device add ncp buildcode disk source="$(pwd)" path=/build
|
||||
$LXC_CMD exec ncp -- bash -c 'while [ "$(systemctl is-system-running 2>/dev/null)" != "running" ] && [ "$(systemctl is-system-running 2>/dev/null)" != "degraded" ]; do :; done'
|
||||
$LXC_CMD exec ncp -- bash -c 'CODE_DIR=/build DBG=x bash /build/install.sh'
|
||||
$LXC_CMD exec ncp -- bash -c 'CODE_DIR=/build DBG=x IS_LXC_BUILD=true bash /build/install.sh'
|
||||
$LXC_CMD exec ncp -- bash -c 'source /build/etc/library.sh; run_app_unsafe /build/post-inst.sh'
|
||||
$LXC_CMD exec ncp -- bash -c "echo '$(basename "$IMG")' > /usr/local/etc/ncp-baseimage"
|
||||
$LXC_CMD stop ncp
|
||||
|
||||
@ -74,7 +74,7 @@ cp etc/ncp.cfg /usr/local/etc/
|
||||
|
||||
cp -r etc/ncp-templates /usr/local/etc/
|
||||
install_app lamp.sh
|
||||
if [[ -d "/run/systemd/system" ]] && is_lxc
|
||||
if [[ "$IS_LXD_BUILD" == "true" ]]
|
||||
then
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y systemd-resolved
|
||||
systemctl enable systemd-resolved
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user