Correct typo in path
This commit is contained in:
parent
094d210f64
commit
d496c81003
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2188,7 +2188,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
|
||||
|
||||
[[package]]
|
||||
name = "reminder_rs"
|
||||
name = "reminder-rs"
|
||||
version = "1.6.10"
|
||||
dependencies = [
|
||||
"base64",
|
||||
|
10
Cargo.toml
10
Cargo.toml
@ -1,8 +1,10 @@
|
||||
[package]
|
||||
name = "reminder_rs"
|
||||
name = "reminder-rs"
|
||||
version = "1.6.10"
|
||||
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
||||
edition = "2021"
|
||||
license = "AGPL-3.0 only"
|
||||
description = "Reminder Bot for Discord, now in Rust"
|
||||
|
||||
[dependencies]
|
||||
poise = "0.4"
|
||||
@ -33,12 +35,14 @@ path = "postman"
|
||||
path = "web"
|
||||
|
||||
[package.metadata.deb]
|
||||
depends = "$auto, nginx, python3, python3-venv"
|
||||
depends = "$auto, nginx, python3-dateparser"
|
||||
suggests = "mysql-server-8.0"
|
||||
maintainer-scripts = "debian"
|
||||
assets = [
|
||||
["target/release/reminder-rs", "usr/bin/reminder-rs", "755"],
|
||||
["conf/default.env", "etc/reminder-rs/default.env", "600"]
|
||||
["conf/default.env", "etc/reminder-rs/default.env", "600"],
|
||||
["web/static/", "var/www/reminder-rs/static", "755"],
|
||||
["nginx/reminder-rs", "etc/nginx/sites-available/reminder-rs", "755"]
|
||||
]
|
||||
|
||||
[package.metadata.deb.systemd-units]
|
||||
|
@ -88,8 +88,8 @@ async fn main() -> Result<(), Box<dyn StdError + Send + Sync>> {
|
||||
async fn _main(tx: Sender<()>) -> Result<(), Box<dyn StdError + Send + Sync>> {
|
||||
env_logger::init();
|
||||
|
||||
if Path::new("/etc/soundfx-rs/default.env").exists() {
|
||||
dotenv::from_path("/etc/soundfx-rs/default.env")?;
|
||||
if Path::new("/etc/reminder-rs/default.env").exists() {
|
||||
dotenv::from_path("/etc/reminder-rs/default.env")?;
|
||||
}
|
||||
|
||||
let discord_token = env::var("DISCORD_TOKEN").expect("Missing DISCORD_TOKEN from environment");
|
||||
|
Loading…
Reference in New Issue
Block a user