Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
cobbler.518
users_patch.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File users_patch.diff of Package cobbler.518
--- cobbler/action_reposync.py +++ cobbler/action_reposync.py 2011/04/04 09:26:39 @@ -560,7 +560,12 @@ 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/04/04 09:28:26 @@ -67,6 +67,8 @@ http_user = "apache" if utils.check_dist() in [ "debian", "ubuntu" ]: http_user = "www-data" + elif utils.check_dist() == "suse": + http_user = "wwwrun" utils.os_system("chown %s /var/lib/cobbler/web.ss"%http_user ) else: fd = open(ssfile,"w+")
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