Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
cobbler.import4280
users_patch.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File users_patch.diff of Package cobbler.import4280
--- cobbler/action_reposync.py +++ cobbler/action_reposync.py 2011/03/04 13:02:54 @@ -563,7 +563,11 @@ a safeguard. """ # all_path = os.path.join(repo_path, "*") - cmd1 = "chown -R root:apache %s" % repo_path + owner = "root:apache" + if os.path.exists("/etc/SuSE-release"): + owner = "root:wwwrun" + + cmd1 = "chown -R "+owner+" %s" % repo_path utils.subprocess_call(self.logger, cmd1) cmd2 = "chmod -R 755 %s" % repo_path --- cobbler/cobblerd.py +++ cobbler/cobblerd.py 2011/03/04 13:03:32 @@ -60,8 +60,11 @@ fd = open("/var/lib/cobbler/web.ss","w+") fd.write(binascii.hexlify(data)) fd.close() + owner = "apache" + if os.path.exists("/etc/SuSE-release"): + owner = "wwwrun" utils.os_system("chmod 700 /var/lib/cobbler/web.ss") - utils.os_system("chown apache /var/lib/cobbler/web.ss") + utils.os_system("chown "+owner+" /var/lib/cobbler/web.ss") return 1 def do_xmlrpc_tasks(bootapi, settings, xmlrpc_port):
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor