Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Couapy committed May 19, 2020
1 parent d9a94e9 commit fb184b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mchandler/main/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def start(self):
listen = os.popen("netstat -ltunp | grep 25563").read()
if len(listen) == 0:
os.system(
"sudo -u minecraft sh {settings.BASE_DIR}/main/scripts/config.sh "
f"sudo -u minecraft sh {settings.BASE_DIR}/main/scripts/config.sh "
+ "{self.pk} 256M 4G {port}"
)
os.system("sudo systemctl start minecraft@" + str(self.pk))
Expand Down
2 changes: 1 addition & 1 deletion mchandler/main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ def start(request, id):
@login_required
def stop(request, id):
server = get_object_or_404(Server, pk=id)
if server.owner is request.user:
if server.owner == request.user:
server.stop()
return HttpResponseRedirect(reverse('main:manage') + "?stop=1")

0 comments on commit fb184b6

Please sign in to comment.