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