improved commands
This commit is contained in:
parent
6250c23295
commit
8dc75bc553
@ -115,6 +115,12 @@ case "$1" in
|
|||||||
;;
|
;;
|
||||||
maintanance)
|
maintanance)
|
||||||
$0 stop
|
$0 stop
|
||||||
|
if [ "$2" = "--fsck" ]; then
|
||||||
|
$LATEST/seaf-fsck.sh
|
||||||
|
fi
|
||||||
|
if [ "$2" = "--fsck-repair" ]; then
|
||||||
|
$LATEST/seaf-fsck.sh --repair
|
||||||
|
fi
|
||||||
$LATEST/seaf-gc.sh
|
$LATEST/seaf-gc.sh
|
||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
|
@ -58,8 +58,7 @@ def perform_upgrade_command(version,mysql=False,yes=True):
|
|||||||
print len(current) == 1 and current[0] == 0
|
print len(current) == 1 and current[0] == 0
|
||||||
if len(current) == 1 and current[0] == 0: #Not installed
|
if len(current) == 1 and current[0] == 0: #Not installed
|
||||||
print("Running installer.")
|
print("Running installer.")
|
||||||
installer = os.path.join(seaf_home,"seafile-server-%s" % version,"setup-seafile%s.sh" % ("-mysql" if mysql else ""))
|
if not call(["seafile-server","setup", os.path.join(seaf_home,"seafile-server-%s" % version) ],stdout=sys.stdout, stdin=sys.stdin):
|
||||||
if not call(["seafile-server","setup"],stdout=sys.stdout, stdin=sys.stdin):
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
sys.exit(126)
|
sys.exit(126)
|
||||||
script_re = "^upgrade_(\d+).(\d+)_(\d+).(\d+)\.sh$"
|
script_re = "^upgrade_(\d+).(\d+)_(\d+).(\d+)\.sh$"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user