Skip to content

Commit

Permalink
Merge pull request #381 from elg/master
Browse files Browse the repository at this point in the history
correction on big log automatic kills
  • Loading branch information
elg authored Jun 25, 2019
2 parents c0299a0 + c19c990 commit a562e60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions passhportd/app/models_mod/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ class User(db.Model):
sshkey = db.Column(db.String(5000),
index=False, unique=True, nullable=False)
sshkeyhash = db.Column(db.String(5000),
index=True, unique=False, nullable=True)
index=False, unique=True, nullable=True)
comment = db.Column(db.String(5000), index=True)
superadmin = db.Column(db.Boolean, unique=False, default=False)
logfilesize = db.Column(db.Integer, unique=False)
logfilesize = db.Column(db.String(30), unique=False)


# Relations (in targetgroups)
Expand Down
2 changes: 1 addition & 1 deletion passhportd/app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def currecntsshconnectionskillbiglog():
sshdisconnect(entry.pid)
killedpid = str(entry.pid) + " " + killedpid

return killedpid
return "Killed PIDs: " + killedpid


@app.route("/connection/ssh/checkandterminate")
Expand Down

0 comments on commit a562e60

Please sign in to comment.