Fixed whitespace issues.

This commit is contained in:
Tynan McAuley
2018-11-05 17:01:51 -05:00
parent 6b34d96e74
commit afdd9f1c77
4 changed files with 24 additions and 24 deletions

View File

@@ -84,7 +84,7 @@ Tool has been tested to work with following distros:
In order to use file level restore from delta backups, the service needs to be ran as root.
CentOS installation is currently not able to do file level restore if the backed up disk contains LVM.
CentOS setup is confirmed to work with fresh minimal installation and SELinux enabled.
CentOS setup is confirmed to work with fresh minimal installation and SELinux enabled.
Although script doesn't do any SELinux checks or modifications, so you need to take care of possible changes by yourself according to your system.
Tool makes all necessary changes required for Xen-Orchestra to run (including packages, user creation, permissions). Please evaluate script if needed.

View File

@@ -10,5 +10,5 @@ check process redis with pidfile /var/run/redis_6379.pid
stop program = "/usr/bin/redis-cli shutdown"
check process rpcbind
matching "rpcbind"
start program = "/usr/sbin/rpcbind"
matching "rpcbind"
start program = "/usr/sbin/rpcbind"

View File

@@ -18,24 +18,24 @@ function RunTestsSingle {
curl -s -L 192.168.33.101 >> $LOGFILE 2>&1 || false
if [[ $? == "1" ]]; then
echo "$1 install HTTP Check: failed"
echo "$1 install HTTP Check: failed"
else
echo "$1 install HTTP Check: success"
fi
sleep 5
vagrant provision --provision-with update >> $LOGFILE 2>&1
sleep 5
echo "" >> $LOGFILE
echo "Curl output after update:" >> $LOGFILE
curl -s -L 192.168.33.101 >> $LOGFILE 2>&1 || false
sleep 5
echo "" >> $LOGFILE
echo "Curl output after update:" >> $LOGFILE
curl -s -L 192.168.33.101 >> $LOGFILE 2>&1 || false
if [[ $? == "1" ]]; then
echo "$1 update HTTP Check: failed"
else
echo "$1 update HTTP Check: success"
fi
sleep 5
if [[ $? == "1" ]]; then
echo "$1 update HTTP Check: failed"
else
echo "$1 update HTTP Check: success"
fi
sleep 5
vagrant destroy -f >> $LOGFILE 2>&1
unset VAGRANT_CWD
@@ -54,13 +54,13 @@ for x in CentOS Debian Ubuntu; do
echo "Vagrant box failed to start, exiting"
exit 1;
fi
vagrant provision --provision-with install >> $LOGFILE 2>&1
sleep 5
echo "" >> $LOGFILE
echo "Curl output after install:" >> $LOGFILE
curl -s -L -m 5 192.168.33.101 >> $LOGFILE 2>&1 || false
if [[ $? == "1" ]]; then
echo "$x install HTTP Check: failed"
else

View File

@@ -120,7 +120,7 @@ function InstallDependenciesDebian {
trap ErrorHandling ERR INT
# Install necessary dependencies for XO build
echo
echo -n "Running apt-get update..."
apt-get update >/dev/null
@@ -178,8 +178,8 @@ function InstallDependenciesDebian {
echo "Enabling and starting redis service"
/bin/systemctl enable redis-server >/dev/null && /bin/systemctl start redis-server >/dev/null
echo "Enabling and starting rpcbind service"
/bin/systemctl enable rpcbind >/dev/null && /bin/systemctl start rpcbind >/dev/null
echo "Enabling and starting rpcbind service"
/bin/systemctl enable rpcbind >/dev/null && /bin/systemctl start rpcbind >/dev/null
} 2>$LOGFILE
@@ -203,9 +203,9 @@ function UpdateNodeYarn {
function InstallXOPlugins {
set -e
trap ErrorHandling ERR INT
if [[ "$PLUGINS" ]] && [[ ! -z "$PLUGINS" ]]; then
echo
@@ -436,9 +436,9 @@ function HandleArgs {
;;
esac
}
}
function RollBackInstallation {
function RollBackInstallation {
INSTALLATIONS=($(find $INSTALLDIR/xo-builds/ -maxdepth 1 -type d -name "xen-orchestra-*"))
@@ -643,7 +643,7 @@ read -p ": " option
;;
2)
PullDockerImage
;;
3)
exit 0