Skip to content

Commit

Permalink
Move sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
tcorbly committed Jan 18, 2024
1 parent c62ff31 commit 2651cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HomeWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void HomeWidget::reboot()
return;

QProcess create3ServerStop;
create3ServerStop.start("sudo systemctl", QStringList() << "stop" << "create3_server.service");
create3ServerStop.start("sudo", QStringList() << "systemctl" << "stop" << "create3_server.service");
bool create3StopRet = create3ServerStop.waitForFinished();
if(create3StopRet == false)
QMessageBox::information(this, "Failed", "Create 3 server could not be stopped.");
Expand Down

0 comments on commit 2651cca

Please sign in to comment.