Skip to content

Commit

Permalink
Change args
Browse files Browse the repository at this point in the history
  • Loading branch information
tcorbly committed Nov 29, 2023
1 parent 6edc3df commit 5e08e06
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions src/Create3Widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,12 @@ int Create3Widget::isConnected()

void Create3Widget::resetServer()
{
QString podmanStopCommand = "sudo podman stop";
QStringList podmanStopArgs;
podmanStopArgs << "-a";
QString podmanStopCommand = "sudo";
QStringList podmanStopArgs = {
"podman",
"stop",
"-a"
};

connect(podmanStop, &QProcess::readyReadStandardOutput, [=]() {
QByteArray data = podmanStop->readAllStandardOutput();
Expand All @@ -127,14 +130,17 @@ void Create3Widget::resetServer()
qDebug() << "Podman stop failed to start or crashed.";
}

QString podmanStartCommand = "sudo podman run";
QStringList podmanStartArgs;
podmanStartArgs << "-dt"
<< "--rm"
<< "--net=host"
<< "--env"
<< "IP=192.168.125.1"
<< "docker.io/kipradmin/create3_docker";
QString podmanStartCommand = "sudo";
QStringList podmanStartArgs = {
"podman",
"run",
"-dt",
"--rm",
"--net=host",
"--env",
"IP=192.168.125.1",
"docker.io/kipradmin/create3_docker"
};

connect(podmanStart, &QProcess::readyReadStandardOutput, [=]() {
QByteArray data = podmanStart->readAllStandardOutput();
Expand Down

0 comments on commit 5e08e06

Please sign in to comment.