forked from ScoDoc/installmgr
default args
This commit is contained in:
parent
71e4f6c9c7
commit
11ea527986
@ -136,12 +136,12 @@ def increment():
|
|||||||
@bp.route("/version", methods=["GET"])
|
@bp.route("/version", methods=["GET"])
|
||||||
def version():
|
def version():
|
||||||
"""
|
"""
|
||||||
echo -e "DATE\tIP\tSVN\tSERIAL\tOP" > installs.log; chown www-data installs.log
|
echo -e "DATE\tIP\tSVN\tSERIAL\tOP" > installs.log; chown scodoc installs.log
|
||||||
"""
|
"""
|
||||||
mode = request.args.get("mode", "?")
|
mode = request.args.get("mode", "?")
|
||||||
sn = request.args.get("sn", "") # serial number
|
sn = request.args.get("sn", "-1") # serial number
|
||||||
svn = request.args.get("svn", "") # installed subversion
|
svn = request.args.get("svn", "-") # installed subversion
|
||||||
commit = request.args.get("commit", "") # installed git commit
|
commit = request.args.get("commit", "-") # installed git commit
|
||||||
if mode == "install" or not sn:
|
if mode == "install" or not sn:
|
||||||
serial = increment()
|
serial = increment()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user