mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
Improve python scripts docstring.
This commit is contained in:
parent
ea4f3762f7
commit
01d1035433
|
@ -2,9 +2,7 @@
|
||||||
#coding: UTF-8
|
#coding: UTF-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
This script calls the appropriate seafile init scripts (e.g.
|
Bootstraping seafile server, letsencrypt (verification & cron job).
|
||||||
setup-seafile.sh or setup-seafile-mysql.sh. It's supposed to run inside the
|
|
||||||
container.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
|
@ -2,9 +2,8 @@
|
||||||
#coding: UTF-8
|
#coding: UTF-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
This script calls the appropriate seafile init scripts (e.g.
|
Starts the seafile/seahub server and watches the controller process. It is
|
||||||
setup-seafile.sh or setup-seafile-mysql.sh. It's supposed to run inside the
|
the entrypoint command of the docker container.
|
||||||
container.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
@ -29,7 +28,9 @@ def watch_controller():
|
||||||
controller_pid = get_command_output('ps aux | grep seafile-controller |grep -v grep || true').strip()
|
controller_pid = get_command_output('ps aux | grep seafile-controller |grep -v grep || true').strip()
|
||||||
if not controller_pid:
|
if not controller_pid:
|
||||||
retry += 1
|
retry += 1
|
||||||
time.sleep(2)
|
else:
|
||||||
|
retry = 0
|
||||||
|
time.sleep(5)
|
||||||
print 'seafile controller exited unexpectedly.'
|
print 'seafile controller exited unexpectedly.'
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
#coding: UTF-8
|
#coding: UTF-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
This script calls the appropriate seafile init scripts (e.g.
|
This script is used to run proper upgrade scripts automatically.
|
||||||
setup-seafile.sh or setup-seafile-mysql.sh. It's supposed to run inside the
|
|
||||||
container.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
Loading…
Reference in a new issue