Update server.py
Browse files
server.py
CHANGED
|
@@ -54,7 +54,7 @@ def update():
|
|
| 54 |
os.system("apt-get install inotify-tools")
|
| 55 |
os.system("pip install ruamel.yaml") # install ruamel.yaml to solve the import issue
|
| 56 |
print('-----------更新软件包列表结束-------------')
|
| 57 |
-
|
| 58 |
from ruamel.yaml import YAML
|
| 59 |
clear_output(wait=True) # 清除输出
|
| 60 |
|
|
@@ -114,7 +114,7 @@ def ssh():
|
|
| 114 |
os.system("service ssh restart ")
|
| 115 |
os.system("export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | tr ':' '\n' | grep -v '/opt/conda/lib' | paste -sd ':') ")
|
| 116 |
print('-----------SSH结束-------------')
|
| 117 |
-
|
| 118 |
clear_output()
|
| 119 |
|
| 120 |
def sync2():
|
|
|
|
| 54 |
os.system("apt-get install inotify-tools")
|
| 55 |
os.system("pip install ruamel.yaml") # install ruamel.yaml to solve the import issue
|
| 56 |
print('-----------更新软件包列表结束-------------')
|
| 57 |
+
update()
|
| 58 |
from ruamel.yaml import YAML
|
| 59 |
clear_output(wait=True) # 清除输出
|
| 60 |
|
|
|
|
| 114 |
os.system("service ssh restart ")
|
| 115 |
os.system("export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | tr ':' '\n' | grep -v '/opt/conda/lib' | paste -sd ':') ")
|
| 116 |
print('-----------SSH结束-------------')
|
| 117 |
+
ssh()
|
| 118 |
clear_output()
|
| 119 |
|
| 120 |
def sync2():
|