Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
rectalogic committed Jan 3, 2024
1 parent 307c341 commit bdad03d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions builders/Linux/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
#!/usr/bin/env bash

OLD_UID=$(id -u)
OLD_UID=$(id -u mediafx)
NEW_UID=$(stat -c "%u" /mediafx/CMakeLists.txt)
if [ ! -z "$NEW_UID" -a "$OLD_UID" != "$NEW_UID" ]; then
echo usermod -u "$NEW_UID" -o $(id -u -n) #XXX
usermod -u "$NEW_UID" -o $(id -u -n)
fi

OLD_GID=$(id -g)
NEW_GID=$(stat -c "%g" /mediafx/CMakeLists.txt)
if [ ! -z "$NEW_GID" -a "$OLD_GID" != "$NEW_GID" ]; then
groupmod -g "$NEW_GID" -o $(id -g -n)
if [ ! -z "$NEW_UID" -a "$NEW_UID" != "0" -a "$OLD_UID" != "$NEW_UID" ]; then
usermod -u "$NEW_UID" -o mediafx
fi

mkdir -p /mediafx/build/Linux && chown -R mediafx /mediafx/build/Linux
Expand Down

0 comments on commit bdad03d

Please sign in to comment.