Skip to content

Commit 21ba845

Browse files
committed
Fix permissions before a git pull
1 parent 442e438 commit 21ba845

File tree

1 file changed

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

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ fi
1414
if [ -d /config/.rbenv/plugins/ruby-build ]; then
1515
echo 'ruby-build plugin already cloned, skipping'
1616

17+
# On a docker start, even if this folder exists, we need to own it first for git to be able to pull
18+
echo 'Setting permissions for ~/.rbenv'
19+
lsiown -R abc:abc \
20+
/config/.rbenv
21+
1722
echo 'Upgrading ruby-build plugin'
1823
git -C /config/.rbenv/plugins/ruby-build pull
1924
else

0 commit comments

Comments
 (0)