Move several logic from init to entrypoint on devenv

For make commands consistent independently if they are executed
inside devenv or from manage.sh
This commit is contained in:
Andrey Antukh 2025-06-02 19:10:48 +02:00
parent f067c86b02
commit 46f330fef3
3 changed files with 8 additions and 7 deletions

View file

@ -2,6 +2,14 @@
set -e
EMSDK_QUIET=1 . /home/emsdk/emsdk_env.sh;
usermod -u ${EXTERNAL_UID:-1000} penpot;
cp /root/.bashrc /home/penpot/.bashrc
cp /root/.vimrc /home/penpot/.vimrc
cp /root/.tmux.conf /home/penpot/.tmux.conf
chown -R penpot:users /home/penpot
exec "$@"

View file

@ -1,11 +1,5 @@
#!/usr/bin/env bash
cp /root/.bashrc /home/penpot/.bashrc
cp /root/.vimrc /home/penpot/.vimrc
cp /root/.tmux.conf /home/penpot/.tmux.conf
chown -R penpot:users /home/penpot
chown -R penpot:users /home/cargo;
set -e
nginx
tail -f /dev/null

View file

@ -2,7 +2,6 @@
# NOTE: this script should be called from the parent directory to
# properly work.
export INCLUDE_STORYBOOK=${BUILD_STORYBOOK:-no};
export INCLUDE_WASM=${BUILD_WASM:-yes};
export CURRENT_VERSION=$1;