Skip to content

Commit 5a4b696

Browse files
Dan PastusekDan Pastusek
authored andcommitted
write to smb as proper user
1 parent 41db019 commit 5a4b696

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

bin/release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22
set -e # bail on error
33

4-
yarn lint
54

65
# Build and package
76
PIBOX_HOST_VERSION=v$(cat package.json | jq -r .version)
@@ -22,6 +21,9 @@ read -r buildresponse
2221
echo "Would you like to publish a new release to GitHub? (y/n)"
2322
read -r ghresponse
2423

24+
yarn
25+
yarn lint
26+
2527
if [[ "$buildresponse" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
2628
# Check for dirty files
2729
if [[ $(git status --porcelain) ]]; then

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pibox-host",
3-
"version": "1.45.0",
3+
"version": "1.46.0",
44
"private": true,
55
"bin": "server.js",
66
"scripts": {

src/functions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export async function saveSambaConfig() {
5252
path = /pibox/files
5353
read only = no
5454
valid users = @${owner}
55+
force user = root
5556
\n`
5657

5758
config.shares.forEach((share) => {

0 commit comments

Comments
 (0)