add remaining missing renames

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2022-07-21 15:56:57 +02:00
parent 5a59201c20
commit 619f5b6e39
5 changed files with 7 additions and 7 deletions

View File

@ -321,7 +321,7 @@ fn action_add_mirror(config: &SectionConfigData) -> Result<MirrorConfig, Error>
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.");
}
}
}

View File

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

View File

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

View File

@ -55,7 +55,7 @@ impl TryInto<ParsedMirrorConfig> 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 {

View File

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