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
|
||||
|
||||
"""
|
||||
This script calls the appropriate seafile init scripts (e.g.
|
||||
setup-seafile.sh or setup-seafile-mysql.sh. It's supposed to run inside the
|
||||
container.
|
||||
Bootstraping seafile server, letsencrypt (verification & cron job).
|
||||
"""
|
||||
|
||||
import argparse
|
||||
|
|
|
@ -2,9 +2,8 @@
|
|||
#coding: UTF-8
|
||||
|
||||
"""
|
||||
This script calls the appropriate seafile init scripts (e.g.
|
||||
setup-seafile.sh or setup-seafile-mysql.sh. It's supposed to run inside the
|
||||
container.
|
||||
Starts the seafile/seahub server and watches the controller process. It is
|
||||
the entrypoint command of the docker container.
|
||||
"""
|
||||
|
||||
import json
|
||||
|
@ -29,7 +28,9 @@ def watch_controller():
|
|||
controller_pid = get_command_output('ps aux | grep seafile-controller |grep -v grep || true').strip()
|
||||
if not controller_pid:
|
||||
retry += 1
|
||||
time.sleep(2)
|
||||
else:
|
||||
retry = 0
|
||||
time.sleep(5)
|
||||
print 'seafile controller exited unexpectedly.'
|
||||
sys.exit(1)
|
||||
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
#coding: UTF-8
|
||||
|
||||
"""
|
||||
This script calls the appropriate seafile init scripts (e.g.
|
||||
setup-seafile.sh or setup-seafile-mysql.sh. It's supposed to run inside the
|
||||
container.
|
||||
This script is used to run proper upgrade scripts automatically.
|
||||
"""
|
||||
|
||||
import json
|
||||
|
|
Loading…
Reference in a new issue