Skip to content

Commit

Permalink
fix: debug log to stdout parameter
Browse files Browse the repository at this point in the history
This changed in smbd 4.15 and was discussed in dperson#405.
  • Loading branch information
morremeyer committed Jan 8, 2023
1 parent e468f89 commit 8498c55
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Publish OCI image

on:
push:
branches:
- main

jobs:
push_to_registry:
Expand All @@ -13,7 +11,17 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v3.3.0

- name: Check if we need to login and if image should be pushed
id: push_check
run: |
if [[ "${{ github.ref }}" == refs/heads/main ]]; then
echo "::set-output name=push::true"
else
echo "::set-output name=push::false"
fi
- name: Log in to the Container registry
if: ${{ steps.push_check.outputs.push }}
uses: docker/login-action@v2.1.0
with:
registry: ghcr.io
Expand All @@ -24,5 +32,5 @@ jobs:
uses: docker/build-push-action@v3.2.0
with:
context: .
push: true
push: ${{ steps.push_check.outputs.push }}
tags: "ghcr.io/${{ github.repository }}:latest"
4 changes: 2 additions & 2 deletions samba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,5 @@ elif ps -ef | egrep -v grep | grep -q smbd; then
echo "Service already running, please restart container to apply changes"
else
[[ ${NMBD:-""} ]] && ionice -c 3 nmbd -D
exec ionice -c 3 smbd -FS --no-process-group </dev/null
fi
exec ionice -c 3 smbd -F --debug-stdout --no-process-group </dev/null
fi

0 comments on commit 8498c55

Please sign in to comment.