mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-21 02:51:48 +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=
|
#QUIET=
|
||||||
#DRY_RUN=
|
#DRY_RUN=
|
||||||
ECHO_PREFIX="### "
|
ECHO_PREFIX="### "
|
||||||
@(){
|
function @ (){
|
||||||
if [ -z $DRY_RUN ] ; then
|
if [ -z $DRY_RUN ] ; then
|
||||||
! [ $QUIET ] \
|
! [ $QUIET ] \
|
||||||
&& echo -e "${ECHO_PREFIX}$@"
|
&& echo -e "${ECHO_PREFIX}$@"
|
||||||
|
|||||||
@ -102,7 +102,11 @@ if xreadYes "# Create bridges?" BRIDGES ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if reviewApplyChanges /etc/network/interfaces ; then
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user