Esempio n. 1
0
def instance_systemd_command(id, command):
    instance = AppInstance.query.get(id)
    label = instance.label
    unit = Systemd().load(label)
    unit.command(command)
    return redirect(url_for('instance_detail', label=label))
Esempio n. 2
0
def instance_systemd_command(id, command):
    instance = AppInstance.query.get(id)
    label = instance.label
    unit = Systemd().load(label)
    unit.command(command)
    return redirect(url_for('instance_detail', label=label))