Skip to content

Commit 6445268

Browse files
author
Some Watson
committed
Fix permissions before a git pull
1 parent 190ffd3 commit 6445268

File tree

1 file changed

+6
-0
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-mod-code-server-bat-install

1 file changed

+6
-0
lines changed

root/etc/s6-overlay/s6-rc.d/init-mod-code-server-bat-install/run

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ fi
4545

4646
if [ -d /config/.bat-extras ]; then
4747
echo 'Bat-extras already cloned, updating'
48+
49+
# On a docker start, even if this folder exists, we need to own it first for git to be able to pull
50+
echo 'Setting permissions for ~/.bat-extras'
51+
lsiown -R abc:abc \
52+
/config/.bat-extras
53+
4854
git -C /config/.bat-extras pull
4955
else
5056
echo 'Cloning bat-extras repo'

0 commit comments

Comments
 (0)