File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,6 @@ jobs:
327327 runs-on : [ubuntu-20.04]
328328 env :
329329 VERSION : " ${{ inputs.git_ref || github.ref }}"
330- ARTIFACT_NAME : " ${{ needs.build-previous.outputs.artifact_name }}"
331330 LXC : " ${{ needs.determine-runner.outputs.lxc_cmd }}"
332331 PREVIOUS_IMAGE_URL : " https://github.com/nextcloud/nextcloudpi/releases/download/v1.53.2/NextcloudPi_LXD_x86_v1.53.2.tar.gz"
333332 steps :
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ function set-nc-domain()
156156 if is_ncp_activated && is_app_enabled notify_push; then
157157 ncc config:system:set trusted_proxies 11 --value=" 127.0.0.1"
158158 ncc config:system:set trusted_proxies 12 --value=" ::1"
159- ncc config:system:set trusted_proxies 13 --value=" ${domain} "
159+ # ncc config:system:set trusted_proxies 13 --value="${domain}"
160160 ncc config:system:set trusted_proxies 14 --value=" $( dig +short " ${domain} " ) "
161161 sleep 5 # this seems to be required in the VM for some reason. We get `http2 error: protocol error` after ncp-upgrade-nc
162162 for try in {1..5}
Original file line number Diff line number Diff line change 77 sed -i -e ' s/^PermitRootLogin.*$/PermitRootLogin No/' /etc/ssh/sshd_config
88fi
99
10+ for i in {10..15}
11+ do
12+ proxy=" $( ncc config:system:get trusted_proxies " $i " ) "
13+ [[ -z " $proxy " ]] || python3 -c " import ipaddress; ipaddress.ip_address('${proxy} ')" || ncc config:system:delete trusted_proxies " $i "
14+ done
15+
1016apt-get update
1117apt-get install --no-install-recommends -y tmux
You can’t perform that action at this time.
0 commit comments