fix wrong indent

This commit is contained in:
Roni Väyrynen
2021-12-06 13:53:44 +02:00
parent 820581cad0
commit a8a960a9ed

View File

@@ -496,7 +496,7 @@ function InstallSudo {
TMPSUDOERS="$(mktemp /tmp/xo-sudoers.XXXXXX)"
runcmd "echo '$XOUSER ALL=(root) NOPASSWD: /bin/mount, /bin/umount' > '$TMPSUDOERS'"
if runcmd "visudo -cf $TMPSUDOERS"; then
runcmd "mv $TMPSUDOERS $SUDOERSFILE"
runcmd "mv $TMPSUDOERS $SUDOERSFILE"
else
printfail "sudoers syntax check failed, not activating $SUDOERSFILE"
runcmd "rm -f $TMPSUDOERS"
@@ -505,7 +505,6 @@ function InstallSudo {
}
# run actual xen orchestra installation. procedure is the same for new installation and update. we always build it from scratch.
function InstallXO {
@@ -525,7 +524,7 @@ function InstallXO {
if [[ "$USESUDO" == "true" ]]; then
InstallSudo
fi
fi
fi
# Create installation directory if doesn't exist already
if [[ ! -d "$INSTALLDIR" ]]; then