Skip to content

Commit 62f69c2

Browse files
committed
feat: add test for read-only localtime
1 parent 1a6c22d commit 62f69c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test-generate

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ if [ "$3" = "split" ] ; then
2727
EOT
2828
done
2929
fi
30-
if [ "$3" = "read-write" ] ; then
30+
if [ "$3" = "read-write" ] || [ "$3" = "localtime" ] ; then
3131
sed -i -e '/tmpfs:/D' -e '/- \/run/D' -e '/- \/tmp/D' -e '/read_only: true/D' docker-compose.yml
32+
if [ "$3" = "localtime" ] ; then
33+
sed -i -e '/weblate-cache:/a\
34+
- /etc/localtime:/etc/localtime:ro' docker-compose.yml
35+
fi
3236
else
3337
# Allow execution in tmp
3438
sed -i 's/- \/tmp/- \/tmp:exec/' docker-compose.yml

0 commit comments

Comments
 (0)