Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.74 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Link between pulp and apache                                                                                                                          
  2.     if not os.path.exists('/var/www/pub'):
  3.         os.symlink('/var/lib/pulp', '/var/www/pub')
  4.  
  5.     # Grant apache write access to the pulp tools log file                                                                                                  
  6.     os.system('setfacl -m user:apache:rwx /var/log/pulp')
  7.     # guarantee apache always has write permissions                                                                                                          
  8.     os.system('chmod 3775 /var/log/pulp')
  9.     os.system('chmod 3775 /var/www/pulp')
  10.     os.system('chmod 3775 /var/lib/pulp')