Correct typo in path

This commit is contained in:
jude 2023-05-07 20:38:08 +01:00
parent 094d210f64
commit d496c81003
3 changed files with 10 additions and 6 deletions

2
Cargo.lock generated
View File

@ -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",

View File

@ -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]

View File

@ -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");