You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Fprintf(os.Stderr, "--version/-v is no longer supported. Instead, download the correct version of the `rocketpool` binary and install that. Current version: %s\n", shared.RocketPoolVersion)
fmt.Fprintf(os.Stderr, "--version/-v is no longer supported. Instead, download the correct version of the `rocketpool` binary and install the update tracker from there. Current version: %s\n", shared.RocketPoolVersion)
"The Rocket Pool service will be installed --Version: %s\n\n%sIf you're upgrading, your existing configuration will be backed up and preserved.\nAll of your previous settings will be migrated automatically.%s\nAre you sure you want to continue?",
62
-
c.String("version"), colorGreen, colorReset,
61
+
"The Rocket Pool %s service will be installed.\n\n%sIf you're upgrading, your existing configuration will be backed up and preserved.\nAll of your previous settings will be migrated automatically.%s\nAre you sure you want to continue?",
TEMPDIR=$(mktemp -d 2>/dev/null)|| fail "Could not create temporary data directory."
125
-
trap'rm -rf "$TEMPDIR"' EXIT
126
-
127
-
128
111
# Get temporary data paths
129
-
PACKAGE_FILES_PATH="$TEMPDIR/install"
130
-
112
+
PACKAGE_FILES_PATH="$(dirname $0)/install"
131
113
132
114
##
133
115
# Installation
@@ -411,14 +393,8 @@ progress 6 "Creating Rocket Pool user data directory..."
411
393
{ mkdir -p "$RP_PATH/alerting/rules"|| fail "Could not create the alerting rules directory."; } >&2
412
394
413
395
414
-
# Download and extract package files
415
-
progress 7 "Downloading Rocket Pool package files..."
416
-
{ curl -L "$PACKAGE_URL"| tar -xJ -C "$TEMPDIR"|| fail "Could not download and extract the Rocket Pool package files."; } >&2
417
-
{ test -d "$PACKAGE_FILES_PATH"|| fail "Could not extract the Rocket Pool package files."; } >&2
418
-
419
-
420
396
# Copy package files
421
-
progress 8"Copying package files to Rocket Pool user data directory..."
397
+
progress 7"Copying package files to Rocket Pool user data directory..."
422
398
{ cp -r "$PACKAGE_FILES_PATH/addons""$RP_PATH"|| fail "Could not copy addons folder to the Rocket Pool user data directory."; } >&2
423
399
{ cp -r -n "$PACKAGE_FILES_PATH/override""$RP_PATH"|| rsync -r --ignore-existing "$PACKAGE_FILES_PATH/override""$RP_PATH"|| fail "Could not copy new override files to the Rocket Pool user data directory."; } >&2
424
400
{ cp -r "$PACKAGE_FILES_PATH/scripts""$RP_PATH"|| fail "Could not copy scripts folder to the Rocket Pool user data directory."; } >&2
@@ -429,7 +405,7 @@ progress 8 "Copying package files to Rocket Pool user data directory..."
429
405
{ touch -a "$RP_PATH/.firstrun"|| fail "Could not create the first-run flag file."; } >&2
430
406
431
407
# Clean up unnecessary files from old installations
432
-
progress 9"Cleaning up obsolete files from previous installs..."
408
+
progress 8"Cleaning up obsolete files from previous installs..."
433
409
{ rm -rf "$DATA_PATH/fr-default"||echo"NOTE: Could not remove '$DATA_PATH/fr-default' which is no longer needed."; } >&2
0 commit comments