Skip to content

Commit

Permalink
snapcraft/commands/lxc: stop handling pre-snap config
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
(cherry picked from commit ff81d50)
  • Loading branch information
simondeziel authored and tomponline committed Nov 7, 2024
1 parent 1b3b6c1 commit dc91675
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions snapcraft/commands/lxc
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ if [ -z "${SNAP_REAL_HOME:-""}" ]; then
fi
fi

# Migrate data if needed
if [ ! -d "${SNAP_USER_COMMON}/config" ]; then
if [ -d "${SNAP_REAL_HOME}/.config/lxc" ]; then
cp -r "${SNAP_REAL_HOME}/.config/lxc" "${SNAP_USER_COMMON}/config" || true
fi
fi

# Set the environment
if [ -z "${LXD_DIR:-""}" ]; then
export LXD_DIR="${SNAP_COMMON}/lxd/"
Expand Down

0 comments on commit dc91675

Please sign in to comment.