.
This commit is contained in:
parent
e10704636f
commit
5909c90941
@ -134,7 +134,7 @@ bool service_runner::uninstall() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 4. Remove the service directory from the server
|
// 4. Remove the service directory from the server
|
||||||
std::string rm_cmd = "'rm -rf " + quote(remotepath::service(mServer, mService)) + "'";
|
std::string rm_cmd = "rm -rf " + quote(remotepath::service(mServer, mService));
|
||||||
if (!mServerEnv.execute_ssh_command(rm_cmd)) {
|
if (!mServerEnv.execute_ssh_command(rm_cmd)) {
|
||||||
std::cerr << "Failed to remove service directory" << std::endl;
|
std::cerr << "Failed to remove service directory" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
|
@ -14,7 +14,7 @@ if ! docker volume inspect "${VOLUME_NAME}" &>/dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# heredoc for config file. Have to use double quotes to substitute variables.
|
# heredoc for config file. Have to use double quotes to substitute variables.
|
||||||
docker run --rm -v ${VOLUME_NAME}:/data alpine sh -c "\
|
docker run --rm -v ${VOLUME_NAME}:/data debian bash -c "\
|
||||||
cat <<EOF > /data/sos_config.json
|
cat <<EOF > /data/sos_config.json
|
||||||
{
|
{
|
||||||
\"write_tokens\": [
|
\"write_tokens\": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user