SHARE
TWEET

Untitled

a guest Mar 13th, 2019 15 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. SERVER=
  3. KEY=
  4. # szukseges segedprogramok telepitese
  5. apt-get update
  6. apt-get -y install apt-transport-spacewalk rhnsd
  7.  
  8. #Insecure repok engedelyezese
  9. echo "Acquire::AllowInsecureRepositories "true";" >  /etc/apt/apt.conf.d/90insecure
  10.  
  11. #debutils.py hotfix
  12. locate /usr/share/rhn/up2date_client/debUtils.py | xargs sed -i -e "s/release = '0'/release = 'X'/g"
  13.  
  14. #OSAD segedprogramok telepitese
  15. yes | dpkg -i pyjabber_0.5.0-1.4ubuntu3_xenial2_all.deb
  16.  
  17. yes | dpkg -i osad_5.11.27-1ubuntu1_xenial7_all.deb
  18.  
  19. #SSH cert letoltese
  20. wget http://$SERVER/pub/RHN-ORG-TRUSTED-SSL-CERT -O /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
  21.  
  22. #csatlakozas a szerverhez
  23. rhnreg_ks --serverUrl=$SERVER/XMLRPC --sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT --activationkey=$KEY
  24.  
  25. #OSAD server elinditasa és autostart
  26. service osad start
  27. update-rc.d osad defaults
  28.  
  29. #Ellenorzes
  30.  
  31. apt-get update
  32. apt-get update
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top