Guest User

Untitled

a guest
Sep 28th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. # После установки etckeeper
  2.  
  3. /etc/etckeeper/etckeeper.conf VCS="git"
  4.  
  5. etckeeper init && etckeeper commit
  6.  
  7. # ------
  8. git config --global user.name "My Machine"
  9. git config --global user.email "etckeeper@my.machine"
  10.  
  11. # ------
  12. Создать приватный реп bitbucket.org
  13. добавить ssh ключ на сайте
  14. cd /etc && git remote add origin ssh://git@bitbucket.org/USERNAME/REPO-NAME.git
  15.  
  16. echo “git show --stat” > /etc/.git/hooks/post-commit
  17. echo "git push origin master" >> /etc/.git/hooks/post-commit
  18.  
  19. chmod +x /etc/.git/hooks/post-commit
  20.  
  21. # ------
  22. крон /etc/cron.daily/etckeeper
Add Comment
Please, Sign In to add comment