mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge 43ffc6346c
into 39be6b0f9f
This commit is contained in:
commit
35fdc9aa99
1 changed files with 8 additions and 0 deletions
|
@ -420,3 +420,11 @@ def tools_upgrade(auth, ignore_apps=False, ignore_packages=False):
|
||||||
if is_api:
|
if is_api:
|
||||||
from yunohost.service import service_log
|
from yunohost.service import service_log
|
||||||
return { "log": service_log('yunohost-api', number="100").values()[0] }
|
return { "log": service_log('yunohost-api', number="100").values()[0] }
|
||||||
|
|
||||||
|
|
||||||
|
def tools_reboot_server():
|
||||||
|
"""
|
||||||
|
Simple function to reboot the server.
|
||||||
|
Interesting to use via the web interface.
|
||||||
|
"""
|
||||||
|
os.system('reboot')
|
||||||
|
|
Loading…
Add table
Reference in a new issue