Skip to content

Commit 676b192

Browse files
authored
dbeaver/dbeaver-devops#1774-fix-chown-non-root-user Changed chown to pwd/workspace (#3247)
1 parent 71231c3 commit 676b192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy/scripts/launch-product.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [ "$(id -u)" -eq 0 ]; then
1111
TARGET_UID=${TARGET_UID:-$DBEAVER_UID}
1212
TARGET_GID=${TARGET_GID:-$DBEAVER_GID}
1313

14-
chown -R $DBEAVER_UID:$DBEAVER_GID $PWD
14+
chown -R $DBEAVER_UID:$DBEAVER_GID $PWD/workspace
1515
# Execute run-server.sh as the dbeaver user with the JAVA_HOME and PATH environment variables
1616
exec su "$TARGET_USER" -c "JAVA_HOME=$JAVA_HOME PATH=$PATH ./run-server.sh"
1717
else

0 commit comments

Comments
 (0)