Fix start-autostarted / stop-all
This commit is contained in:
parent
d70fe9756a
commit
0614c15e3e
@ -8,7 +8,7 @@ depend() {
|
||||
}
|
||||
|
||||
start() {
|
||||
/usr/bin/spoc-app autostart
|
||||
/usr/bin/spoc-app start-autostarted
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
@ -20,7 +20,7 @@ def listing(list_type):
|
||||
apps = repo_online.get_apps()
|
||||
elif list_type == 'updates':
|
||||
online_apps = repo_online.get_apps()
|
||||
apps = [a for a,d in repo_local.get_apps() if a in online_apps and parse_version(online_apps[a]['version']) > parse_version(d['version'])]
|
||||
apps = [a for a,d in repo_local.get_apps().items() if a in online_apps and parse_version(online_apps[a]['version']) > parse_version(d['version'])]
|
||||
elif list_type == 'published':
|
||||
apps = repo_publish.get_apps()
|
||||
for app in apps:
|
||||
@ -101,13 +101,13 @@ def autostart(app_name, value):
|
||||
|
||||
def start_autostarted():
|
||||
# Start all applications (resp. their containers) which are set to be autoostarted on boot
|
||||
apps = [App(a) for a,d in repo_local.get_apps() if d['autostart']]
|
||||
apps = [App(a) for a,d in repo_local.get_apps().items() if d['autostart']]
|
||||
for app in apps:
|
||||
app.start()
|
||||
|
||||
def stop_all():
|
||||
# Stop all applications (resp. their containers)
|
||||
apps = [App(a) for a,d in repo_local.get_apps()]
|
||||
apps = [App(a) for a,d in repo_local.get_apps().items()]
|
||||
for app in apps:
|
||||
app.stop()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user