mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-20 10:31:47 +00:00
added fail safe...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bb1b2cba15
commit
0be2837c6d
@ -21,7 +21,7 @@ CT_DIR=${CT_DIR:=/etc/pve/lxc/}
|
||||
#QUIET=
|
||||
#DRY_RUN=
|
||||
ECHO_PREFIX="### "
|
||||
@(){
|
||||
function @ (){
|
||||
if [ -z $DRY_RUN ] ; then
|
||||
! [ $QUIET ] \
|
||||
&& echo -e "${ECHO_PREFIX}$@"
|
||||
|
||||
@ -102,7 +102,11 @@ if xreadYes "# Create bridges?" BRIDGES ; then
|
||||
fi
|
||||
|
||||
if reviewApplyChanges /etc/network/interfaces ; then
|
||||
@ ifreload -a
|
||||
if ! @ ifreload -a ; then
|
||||
# reset settings back if ifreload fails...
|
||||
@ cp /etc/network/interfaces{.bak,}
|
||||
@ ifreload -a
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user