If apps fail to install then keep going but record them in the log
This commit is contained in:
parent
84d6247463
commit
9e556faa8f
|
@ -202,8 +202,6 @@ function install_apps_selected {
|
|||
install_apps interactive
|
||||
if [ ! $APP_INSTALLED_SUCCESS ]; then
|
||||
echo $'One or more apps failed to install'
|
||||
cat /tmp/failed_apps
|
||||
exit 357223
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -427,9 +427,6 @@ function install_apps {
|
|||
is_interactive=$1
|
||||
|
||||
APP_INSTALLED_SUCCESS=1
|
||||
if [ -f /tmp/failed_apps ]; then
|
||||
rm /tmp/failed_apps
|
||||
fi
|
||||
|
||||
# interactive install configuration for each app
|
||||
if [ ${is_interactive} ]; then
|
||||
|
@ -466,7 +463,7 @@ function install_apps {
|
|||
install_completed ${a}
|
||||
echo $"${a} was installed from interactive"
|
||||
else
|
||||
echo " ${a}" >> /tmp/failed_apps
|
||||
echo "Failed to install: ${a}" >> /var/log/${PROJECT_NAME}.log
|
||||
APP_INSTALLED_SUCCESS=
|
||||
echo $"${a} was not installed from interactive"
|
||||
fi
|
||||
|
@ -492,7 +489,7 @@ function install_apps {
|
|||
install_completed ${a}
|
||||
echo $"${a} was installed"
|
||||
else
|
||||
echo " ${a}" >> /tmp/failed_apps
|
||||
echo "Failed to install: ${a}" >> /var/log/${PROJECT_NAME}.log
|
||||
APP_INSTALLED_SUCCESS=
|
||||
echo $"${a} was not installed"
|
||||
fi
|
||||
|
|
|
@ -555,8 +555,6 @@ function setup_apps {
|
|||
install_apps
|
||||
if [ ! $APP_INSTALLED_SUCCESS ]; then
|
||||
echo $'One or more apps failed to install'
|
||||
cat /tmp/failed_apps
|
||||
exit 368224
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue