mirror of
https://git.proxmox.com/git/proxmox-offline-mirror
synced 2025-04-28 13:01:07 +00:00
add remaining missing renames
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
5a59201c20
commit
619f5b6e39
@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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:
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user