diff --git a/src/bin/proxmox-offline-mirror.rs b/src/bin/proxmox-offline-mirror.rs index fc24e57..0bbd718 100644 --- a/src/bin/proxmox-offline-mirror.rs +++ b/src/bin/proxmox-offline-mirror.rs @@ -321,7 +321,7 @@ fn action_add_mirror(config: &SectionConfigData) -> Result let dir = loop { let path = read_string_from_tty( "Enter (absolute) path where mirrored repository will be stored", - Some("/var/lib/proxmox-apt-mirror/mirrors/{id}"), + Some("/var/lib/proxmox-offline-mirror/mirrors/{id}"), )?; if !path.starts_with("/") { eprintln!("Path must start with '/'"); @@ -539,7 +539,7 @@ async fn setup(_param: Value) -> Result<(), Error> { config.set_data(&id, "mirror", mirror_config)?; save_config(&config_file, &config)?; println!("Config entry '{id}' added"); - println!("Run \"proxmox-apt-mirror mirror snapshot create --config '{config_file}' --id '{id}'\" to create a new mirror snapshot."); + println!("Run \"proxmox-offline-mirror mirror snapshot create --config '{config_file}' --id '{id}'\" to create a new mirror snapshot."); } Action::AddMedium => { let media_config = action_add_medium(&config)?; @@ -547,7 +547,7 @@ async fn setup(_param: Value) -> Result<(), Error> { config.set_data(&id, "medium", media_config)?; save_config(&config_file, &config)?; println!("Config entry '{id}' added"); - println!("Run \"proxmox-apt-mirror medium sync --config '{config_file}' --id '{id}'\" to sync mirror snapshots to medium."); + println!("Run \"proxmox-offline-mirror medium sync --config '{config_file}' --id '{id}'\" to sync mirror snapshots to medium."); } } } diff --git a/src/bin/proxmox_offline_mirror_cmds/config.rs b/src/bin/proxmox_offline_mirror_cmds/config.rs index 57aa5fe..21e1a48 100644 --- a/src/bin/proxmox_offline_mirror_cmds/config.rs +++ b/src/bin/proxmox_offline_mirror_cmds/config.rs @@ -13,7 +13,7 @@ use proxmox_offline_mirror::{ types::{MEDIA_ID_SCHEMA, MIRROR_ID_SCHEMA}, }; -pub const DEFAULT_CONFIG_PATH: &str = "/etc/proxmox-apt-mirror.cfg"; +pub const DEFAULT_CONFIG_PATH: &str = "/etc/proxmox-offline-mirror.cfg"; pub const LIST_MIRRORS_RETURN_TYPE: ReturnType = ReturnType { optional: false, diff --git a/src/lib.rs b/src/lib.rs index 2d1d84a..9ad5cab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ //! Proxmox mirroring tool for APT repositories. //! -//! This library provides the underlying functionality of the `proxmox-apt-mirror` and +//! This library provides the underlying functionality of the `proxmox-offline-mirror` and //! `proxmox-apt-repo` binaries. //! //! It implements the following features: diff --git a/src/mirror.rs b/src/mirror.rs index ef7e517..c8bdb41 100644 --- a/src/mirror.rs +++ b/src/mirror.rs @@ -55,7 +55,7 @@ impl TryInto for MirrorConfig { let key = file_get_contents(Path::new(&self.key_path))?; let agent = ureq::builder() - .user_agent("proxmox-apt-mirror 0.1") // TODO actually read version ;) + .user_agent("proxmox-offline-mirror 0.1") // TODO actually read version ;) .build(); Ok(ParsedMirrorConfig { diff --git a/src/subscription.rs b/src/subscription.rs index 1a8b74d..a0d1aab 100644 --- a/src/subscription.rs +++ b/src/subscription.rs @@ -10,7 +10,7 @@ use crate::{config::SubscriptionKey, types::ProductType}; const PRODUCT_URL: &str = "ADD URL FOR PROXMOX-APT-MIRROR"; // TODO add version? -const USER_AGENT: &str = "proxmox-apt-mirror"; +const USER_AGENT: &str = "proxmox-offline-mirror"; fn simple_http() -> SimpleHttp { let options = SimpleHttpOptions {