From 792bcd35b5d2c3edc711a732fb5627e54301cced Mon Sep 17 00:00:00 2001 From: casjay Date: Mon, 17 Oct 2022 11:15:50 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/entrypoint-code.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/bin/entrypoint-code.sh b/bin/entrypoint-code.sh index 17aa65b..b15a8de 100755 --- a/bin/entrypoint-code.sh +++ b/bin/entrypoint-code.sh @@ -117,21 +117,18 @@ if [ -n "$DOMANNAME" ]; then fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Create files -mkdir -p "/config" "/data" +sudo mkdir -p "/config" "/data" && chown -Rf x11user:x11user "/config" "/data" +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if [ -d "/config/vscode" ]; then - rm -Rf "$HOME/.vscode" - ln -sf "/config/vscode" "$HOME/.vscode" + rm -Rf "$HOME/.vscode" && ln -sf "/config/vscode" "$HOME/.vscode" else - mv -fv "$HOME/.vscode" "/config/vscode" - ln -sf "/config/vscode" "$HOME/.vscode" + mv -fv "$HOME/.vscode" "/config/vscode" && ln -sf "/config/vscode" "$HOME/.vscode" fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if [ -d "/config/code" ]; then - rm -Rf "$HOME/.config/Code" - ln -sf "/config/code" "$HOME/.config/Code" + rm -Rf "$HOME/.config/Code" && ln -sf "/config/code" "$HOME/.config/Code" else - mv -fv "$HOME/.config/Code" "/config/code" - ln -sf "/config/code" "$HOME/.config/Code" + mv -fv "$HOME/.config/Code" "/config/code" && ln -sf "/config/code" "$HOME/.config/Code" fi # Fic permissions