1
0
mirror of https://github.com/stucki/docker-lineageos synced 2024-12-19 17:12:29 -05:00
docker-lineageos/startup.sh

14 lines
369 B
Bash
Raw Normal View History

2015-03-16 05:19:07 -04:00
#!/bin/sh
# Initialize ccache if needed
if [ ! -f /srv/ccache/CACHEDIR.TAG ]; then
CCACHE_DIR=/srv/ccache ccache -M 50G
fi
2015-03-16 05:19:07 -04:00
# 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