Skip to content

Commit 54db154

Browse files
committed
Store and restore umask
1 parent ffd7dca commit 54db154

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

network_config.functions.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ gen_etc_netplan_01_netcfg_yaml_entry() {
709709

710710
# setup /etc/netplan/01-netcfg.yaml
711711
setup_etc_netplan_01_netcfg_yaml() {
712+
OLD_UMASK=`umask`
712713
umask 7177
713714
debug '# setting up /etc/netplan/01-netcfg.yaml'
714715
{
@@ -721,6 +722,7 @@ setup_etc_netplan_01_netcfg_yaml() {
721722
gen_etc_netplan_01_netcfg_yaml_entry "$network_interface" || return 1
722723
done < <(physical_network_interfaces)
723724
} > "$FOLD/hdd/etc/netplan/01-netcfg.yaml" 2> >(debugoutput)
725+
umask $OLD_UMASK
724726
}
725727

726728
# gen network file

0 commit comments

Comments
 (0)