Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2355 from seb128/netplan-config-copied
Browse files Browse the repository at this point in the history
Update the network config copy script for netplan (#2348)
  • Loading branch information
Tim Holmes-Mitra committed Sep 29, 2023
2 parents 74823cd + d6a87a0 commit 9403be4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions snap/local/postinst.d/10_copy_network_config
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ target_nm=$target/$source_nm
if [ -d $source_nm ] && [ -d $target_nm ]; then
cp -anr $source_nm/. $target_nm
fi

source_netplan=/etc/netplan
target_netplan=$target/$source_netplan

if [ -d $source_netplan ] && [ -d $target_netplan ]; then
cp -anr $source_netplan/90-NM-* $target_netplan
fi

0 comments on commit 9403be4

Please sign in to comment.