Skip to content

Commit

Permalink
Manual global write permissions
Browse files Browse the repository at this point in the history
Before:

```
drwxr-xr-x 2 root   root       4096 Jul 25 22:34 .
drwxr-xr-x 3 runner docker     4096 Jul 25 22:32 ..
-rw-r--r-- 1 root   root   24061018 Jul 25 22:34 ruby-3.2.3.tgz
```

With these permissions we were unable to write to the directory. After:

After

```
drwxrwxrwx 2 root   root       4096 Jul 27 02:53 .
drwxr-xr-x 3 runner docker     4096 Jul 27 02:51 ..
-rw-r--r-- 1 root   root   24061325 Jul 27 02:53 ruby-3.2.3.tgz
```

Now we can copy the file to a new filename in the same directory.
  • Loading branch information
schneems committed Jul 27, 2024
1 parent 74a8acf commit 10506b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions make_ruby.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ PS4='>\e[33m${BASH_SOURCE}:${LINENO} $\e[0m '
set -o xtrace

mkdir -p "$(dirname "$OUT_TAR")"

# Docker issue with permissions
chmod a+w "$(dirname "$OUT_TAR")"
mkdir -p /tmp/source
mkdir -p /tmp/compiled

Expand Down

0 comments on commit 10506b3

Please sign in to comment.