fixed wrong systemctl command
This commit is contained in:
parent
5ce52732bb
commit
9a6b374406
@ -3,7 +3,7 @@ name = "shibe-bot"
|
||||
description = "A Discord bot written in Rust, using Poise."
|
||||
license = "MIT"
|
||||
readme = "README.md"
|
||||
version = "0.3.3"
|
||||
version = "0.3.4"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Shibe Bot 0.3.3
|
||||
# Shibe Bot 0.3.4
|
||||
|
||||
[](https://github.com/shibedrill/shibe-bot/actions/workflows/rust.yml)
|
||||
[](LICENSE.txt)
|
||||
|
@ -6,7 +6,7 @@ use crate::Error;
|
||||
/// Update the bot remotely (Requires updater systemd service)
|
||||
#[poise::command(slash_command, owners_only, hide_in_help)]
|
||||
pub async fn update(ctx: Context<'_>) -> Result<(), Error> {
|
||||
let command_result = std::process::Command::new("systemd")
|
||||
let command_result = std::process::Command::new("systemctl")
|
||||
.arg("--user")
|
||||
.arg("restart")
|
||||
.arg("shibe-bot-update.service")
|
||||
|
Loading…
Reference in New Issue
Block a user