Skip to content

Commit 220a53a

Browse files
committed
Fix HPB service
vm-tests.yml: Fix invalid variable usage Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
1 parent 84b78e8 commit 220a53a

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/vm-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ jobs:
247247
TEST_SERVER_ID: ${{ needs.setup-installation-test-instance.outputs.test_server_id }}
248248
VERSION: ${{ needs.setup-installation-test-instance.outputs.version }}
249249

250-
UID: ${{ github.run_id }}-${TEST_TYPE}
250+
UID: ${{ github.run_id }}-${{ env.TEST_TYPE }}
251251
steps:
252252
- name: download ssh private key from artifact store
253253
uses: actions/download-artifact@v3
@@ -301,7 +301,7 @@ jobs:
301301
TEST_RESULT: ${{ needs.setup-update-test-instance.result }}
302302
TEST_SERVER_ID: ${{ needs.setup-update-test-instance.outputs.test_server_id }}
303303
VERSION: ${{ needs.setup-update-test-instance.outputs.version }}
304-
UID: ${{ github.run_id }}-${TEST_TYPE}
304+
UID: ${{ github.run_id }}-${{ env.TEST_TYPE }}
305305
steps:
306306
- name: download ssh private key from artifact store
307307
uses: actions/download-artifact@v3

bin/nextcloud-domain.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,3 @@ while :; do
3535
break
3636
done
3737

38-
[[ -z "$nc_domain" ]] || {
39-
echo "Starting notify_push daemon"
40-
start_notify_push
41-
}

build/docker/debian-ncp/run-parts.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,8 @@ for file in $( ls -1v /etc/services-enabled.d | grep -v ^000.* ); do
6161
/etc/services-enabled.d/"$file" start "$1"
6262
done
6363

64-
# wait for trap from 'docker stop'
65-
echo "Init done"
6664

67-
if [[ -z "$NOBACKUP" ]] || [[ "$NOBACKUP" != "true" ]]
65+
if [[ -z "$NOBACKUP" ]] || [[ "$NOBACKUP" != "true" ]] && ! a2query -s ncp-activation -q
6866
then
6967
BKPDIR=/data/docker-startup-backups
7068
WITH_DATA=no
@@ -75,6 +73,8 @@ then
7573
ncp-backup "$BKPDIR" "$WITH_DATA" "$COMPRESSED" "$LIMIT" || echo 'WARN: Backup creation failed'
7674
fi
7775

76+
# wait for trap from 'docker stop'
77+
echo "Init done"
7878
while true; do sleep 0.5; done
7979

8080

build/docker/nextcloud/020nextcloud

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ EOF
5555
echo "Provisioning"
5656
bash /usr/local/bin/ncp-provisioning.sh
5757

58+
echo "Starting notify_push daemon"
59+
start_notify_push
60+
5861
if needs_decrypt; then
5962
echo "Waiting for user to decrypt instance"
6063
while :; do

etc/library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function set-nc-domain()
163163
fi
164164
}
165165

166-
function start_notify_push
166+
function start_notify_push()
167167
{
168168
pgrep notify_push &>/dev/null && return
169169
if [[ -f /.docker-image ]]; then

0 commit comments

Comments
 (0)