Gavaldo's picture

Hi guys,

I'm using successfully the Turnkey LAMP appliance for a long time now and it's just great.

However, recently I noticed one of my server was short in space. / had 0% free making the MySql server not starting anymore. So I searched a bit and found almost 4GB was used in /etc/.git

since I have absolutely no need in git in this server I just did a rm -rf /etc/.git but still... I'm confused why are we supposed to have git in a LAMP appliance?

Thanks,

Forum: 
Tags: 
Jeremy Davis's picture

From http://joeyh.name/code/etckeeper/:

etckeeper is a collection of tools to let /etc be stored in a git, mercurial, darcs, or bzr repository. It hooks into apt (and other package managers including yum and pacman-g2) to automatically commit changes made to /etc during package upgrades. It tracks file metadata that revison control systems do not normally support, but that is important for /etc, such as the permissions of /etc/shadow. It's quite modular and configurable, while also being simple to use if you understand the basics of working with revision control.

By default etckeeper in TKL is configured to use Git. If you don't want to use it then uninstall.

apt-get remove --purge etckeeper

There is more info about etckeeper in the readme on GitHub (https://github.com/joeyh/etckeeper)

Gavaldo's picture

Oh! thanks... I get it now. I'll probably not uninstall etckeeper then but just ensure /etc/.git does not grow too fast. I've just done an uninit -f then init... it will be probably cleaner than just rm -rf etc/.git

Thanks!


Add new comment