Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # После установки etckeeper
- /etc/etckeeper/etckeeper.conf VCS="git"
- etckeeper init && etckeeper commit
- # ------
- git config --global user.name "My Machine"
- git config --global user.email "etckeeper@my.machine"
- # ------
- Создать приватный реп bitbucket.org
- добавить ssh ключ на сайте
- cd /etc && git remote add origin ssh://git@bitbucket.org/USERNAME/REPO-NAME.git
- echo “git show --stat” > /etc/.git/hooks/post-commit
- echo "git push origin master" >> /etc/.git/hooks/post-commit
- chmod +x /etc/.git/hooks/post-commit
- # ------
- крон /etc/cron.daily/etckeeper
Add Comment
Please, Sign In to add comment