Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. cd /var/www/html/repos
  4.  
  5. reposync -n -r base
  6. reposync -n -r updates
  7. reposync -n -r extras
  8. reposync -n -r salt-latest
  9. reposync -n -r dockerrepo
  10. reposync -n -r epel
  11. reposync -n -r icinga-stable-release
  12.  
  13. # update repos for base,updates,extras and epel
  14.  
  15.  
  16.  
  17. createrepo --update /var/www/html/repos/base
  18. createrepo --update /var/www/html/repos/updates
  19. createrepo --update /var/www/html/repos/extras
  20. createrepo --update /var/www/html/repos/epel
  21. createrepo --update /var/www/html/repos/salt-latest
  22. createrepo --update /var/www/html/repos/dockerrepo
  23. createrepo --update /var/www/html/repos/icinga-stable-release
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement