- # Link between pulp and apache
- if not os.path.exists('/var/www/pub'):
- os.symlink('/var/lib/pulp', '/var/www/pub')
- # Grant apache write access to the pulp tools log file
- os.system('setfacl -m user:apache:rwx /var/log/pulp')
- # guarantee apache always has write permissions
- os.system('chmod 3775 /var/log/pulp')
- os.system('chmod 3775 /var/www/pulp')
- os.system('chmod 3775 /var/lib/pulp')