Skip to content

Commit

Permalink
snapcraft/command/lxc: ~/snap/lxd/current was last used in 2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Sep 25, 2023
1 parent 729db75 commit e6502f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions snapcraft/commands/lxc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e6502f8

Please sign in to comment.