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
# If the user *only* used Mainnet (most common), we're safe to remove the whole ~/.daedalus/nix:
30
-
echo"Found an older non-portable version of Daedalus in $old_nix, removing it..."
31
-
chmod -R +w "$old_nix"
32
-
rm -rf "$old_nix"
33
-
else
34
-
# But if it contains more Daedaluses for other networks, we can't risk breaking them:
35
-
echo"Found older non-portable versions of Daedalus for multiple networks in $old_nix, you are free to remove the directory manually, if you no longer use them."
36
-
fi
32
+
if [ -z"$in_chroot" ] ;then
33
+
@REMOVE_OLD_NIX_CHROOT@
37
34
fi
38
35
39
36
progress_cmd="cat"
@@ -47,6 +44,16 @@ fi
47
44
echo"Unpacking..."
48
45
tail -c+$((skip_bytes+1))"$0"|$progress_cmd| tar -C "$target" -xJ
49
46
47
+
# Move a faux `satisfyOldUpdateRunner` to $PWD so that the old `update-runner` doesn’t error out:
48
+
chmod +w "$target"
49
+
chmod -R +w "$target"/dat
50
+
if [ -z"$in_chroot" ] ;then
51
+
rm -rf "$target"/dat
52
+
else
53
+
mv "$target"/dat ./
54
+
fi
55
+
chmod -w "$target"
56
+
50
57
echo"Setting up a .desktop entry..."
51
58
mkdir -p "$HOME"/.local/share/applications
52
59
chmod -R +w "$target"/share/applications
@@ -55,10 +62,22 @@ sed -r "s+INSERT_ICON_PATH_HERE+$target/share/icon_large.png+g" -i "$target"/sha
if [ "$old_clusters" = "profile-${cluster}" ] ; then
389
+
# If the user *only* used Mainnet (most common), we're safe to remove the whole ~/.daedalus/nix:
390
+
echo "Found an older non-portable version of Daedalus in $old_nix, removing it..."
391
+
chmod -R +w "$old_nix"
392
+
chmod -R +w "$old_etc" || true
393
+
rm -rf "$old_nix" "$old_etc" || true
394
+
else
395
+
# But if it contains more Daedaluses for other networks, we can't risk breaking them:
396
+
echo "Found older non-portable versions of Daedalus for multiple networks in $old_nix, you are free to remove the directory manually, if you no longer use them."
0 commit comments