1
0
mirror of https://github.com/stucki/docker-lineageos synced 2025-01-09 17:39:47 -05:00
docker-lineageos/startup.sh
Michael Stucki 33f7fd052e Move ccache initialization to startup.sh
This fixes a major problem with ccache being initialized before the volume is mounted.
The contents of /srv/ccache were therefore empty and CCACHE_MAXSIZE=50G was not set.
The result was that ccache could only use up to 1 GB of cache data (default value).
2015-03-16 10:54:27 +01:00

14 lines
369 B
Bash

#!/bin/sh
# Initialize ccache if needed
if [ ! -f /srv/ccache/CACHEDIR.TAG ]; then
CCACHE_DIR=/srv/ccache ccache -M 50G
fi
# Fix console permissions as long as https://github.com/docker/docker/issues/9806 is not fixed
usermod --groups tty --append cmbuild
chgrp tty /dev/console
chmod g+rw /dev/console
su -c "cd /home/cmbuild/android; screen -s /bin/bash" cmbuild