Univention Bugzilla – Attachment 7231 Details for
Bug 39190
Start and stop Docker App on detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix_update_rc_d.patch
fix_update_rc_d.patch (text/plain), 1.75 KB, created by
Arvid Requate
on 2015-10-28 17:43 CET
(
hide
)
Description:
fix_update_rc_d.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2015-10-28 17:43 CET
Size:
1.75 KB
patch
obsolete
>Index: python/appcenter/actions/register.py >=================================================================== >--- python/appcenter/actions/register.py (Revision 64943) >+++ python/appcenter/actions/register.py (Arbeitskopie) >@@ -282,7 +282,7 @@ > pass > else: > try: >- init_script = Service.get_init(app) >+ init_script = Service.get_init_name(app) > self.log('Creating %s' % init_script) > os.symlink(ORIGINAL_INIT_SCRIPT, init_script) > self._call_script('update-rc.d', os.path.basename(init_script), 'defaults', '41', '14') >@@ -405,7 +405,7 @@ > pass > else: > try: >- init_script = Service.get_init(app) >+ init_script = Service.get_init_name(app) > os.unlink(init_script) > self._call_script('update-rc.d', os.path.basename(init_script), 'remove') > except OSError: >Index: python/appcenter-docker/actions/service.py >=================================================================== >--- python/appcenter-docker/actions/service.py (Revision 64943) >+++ python/appcenter-docker/actions/service.py (Arbeitskopie) >@@ -44,15 +44,19 @@ > parser.add_argument('app', action=StoreAppAction, help='The ID of the app that shall be started') > > @classmethod >- def get_init(self, app): >- return '/etc/init.d/docker-app-%s' % app.id >+ def get_init_name(self, app): >+ return 'docker-app-%s' % app.id > >+ @classmethod >+ def get_init_path(self, app): >+ return '/etc/init.d/%s' % get_init_name(app) >+ > def call_init(self, app, command): >- init = self.get_init(app) >+ init = self.get_init_path(app) > if not os.path.exists(init): > self.fatal('%s is not installed' % app.id) > return False >- return self._call_script(self.get_init(app), command) >+ return self._call_script(self.get_init_path(app), command) > > > class Start(Service):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 39190
: 7231