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"])
|
||||
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", "?")
|
||||
sn = request.args.get("sn", "") # serial number
|
||||
svn = request.args.get("svn", "") # installed subversion
|
||||
commit = request.args.get("commit", "") # installed git commit
|
||||
sn = request.args.get("sn", "-1") # serial number
|
||||
svn = request.args.get("svn", "-") # installed subversion
|
||||
commit = request.args.get("commit", "-") # installed git commit
|
||||
if mode == "install" or not sn:
|
||||
serial = increment()
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user