From e6502f89656ded9ba1901737a0a5d22b4682279a Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Fri, 22 Sep 2023 21:15:27 -0400 Subject: [PATCH] snapcraft/command/lxc: ~/snap/lxd/current was last used in 2.0 Signed-off-by: Simon Deziel --- snapcraft/commands/lxc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/snapcraft/commands/lxc b/snapcraft/commands/lxc index c520c8bdd..e01ccda93 100755 --- a/snapcraft/commands/lxc +++ b/snapcraft/commands/lxc @@ -28,10 +28,7 @@ fi # Migrate data if needed if [ ! -d "${SNAP_USER_COMMON}/config" ]; then - if [ -d "${SNAP_USER_DATA}/.config/lxc" ]; then - mv "${SNAP_USER_DATA}/.config/lxc" "${SNAP_USER_COMMON}/config" || true - rmdir "${SNAP_USER_DATA}/.config/" || true - elif [ -d "${SNAP_REAL_HOME}/.config/lxc" ]; then + if [ -d "${SNAP_REAL_HOME}/.config/lxc" ]; then cp -r "${SNAP_REAL_HOME}/.config/lxc" "${SNAP_USER_COMMON}/config" || true fi