Skip to content

Commit

Permalink
docs: change safeup to antup in a few places
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee committed Jan 15, 2025
1 parent abfc4b6 commit 1a328d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions ant-node-manager/src/bin/cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1364,18 +1364,18 @@ fn parse_environment_variables(env_var: &str) -> Result<(String, String)> {
async fn configure_winsw(verbosity: VerbosityLevel) -> Result<()> {
use ant_node_manager::config::get_node_manager_path;

// If the node manager was installed using `safeup`, it would have put the winsw.exe binary at
// If the node manager was installed using `antup`, it would have put the winsw.exe binary at
// `C:\Users\<username>\autonomi\winsw.exe`, sitting it alongside the other safe-related binaries.
//
// However, if the node manager has been obtained by other means, we can put winsw.exe
// alongside the directory where the services are defined. This prevents creation of what would
// seem like a random `autonomi` directory in the user's home directory.
let safeup_winsw_path = dirs_next::home_dir()
let antup_winsw_path = dirs_next::home_dir()
.ok_or_else(|| eyre!("Could not obtain user home directory"))?
.join("autonomi")
.join("winsw.exe");
if safeup_winsw_path.exists() {
ant_node_manager::helpers::configure_winsw(&safeup_winsw_path, verbosity).await?;
if antup_winsw_path.exists() {
ant_node_manager::helpers::configure_winsw(&antup_winsw_path, verbosity).await?;
} else {
ant_node_manager::helpers::configure_winsw(
&get_node_manager_path()?.join("winsw.exe"),
Expand Down
4 changes: 2 additions & 2 deletions resources/scripts/upload-random-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ fi
check_and_install_safe() {
if ! command -v safe &> /dev/null; then
echo "'safe' command not found. Installing..."
curl -sSL https://raw.githubusercontent.com/maidsafe/safeup/main/install.sh | sudo bash
safeup client
curl -sSL https://raw.githubusercontent.com/maidsafe/antup/main/install.sh | sudo bash
antup client
else
echo "'safe' command is already installed."
fi
Expand Down

0 comments on commit 1a328d1

Please sign in to comment.