Only warn if an app is already installed.

This commit is contained in:
Christoph 2019-10-06 23:51:02 +02:00
parent 0e9148d6a4
commit 7eeab15a4b

View File

@ -759,6 +759,10 @@ sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $l
if [[ $? -eq 0 ]]; then
echo_ok
else
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
echo_skipped
warn "$(cat $log_file)"
else
echo_failed
error "$(cat $log_file)"
@ -770,6 +774,7 @@ else
read OK
done
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
fi
fi
echononl "Eanable nextcloud app '$_app'.."
@ -803,6 +808,10 @@ sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $l
if [[ $? -eq 0 ]]; then
echo_ok
else
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
echo_skipped
warn "$(cat $log_file)"
else
echo_failed
error "$(cat $log_file)"
@ -814,6 +823,7 @@ else
read OK
done
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
fi
fi
echononl "Eanable nextcloud app '$_app'.."
@ -847,6 +857,10 @@ sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $l
if [[ $? -eq 0 ]]; then
echo_ok
else
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
echo_skipped
warn "$(cat $log_file)"
else
echo_failed
error "$(cat $log_file)"
@ -858,6 +872,7 @@ else
read OK
done
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
fi
fi
echononl "Eanable nextcloud app '$_app'.."
@ -892,6 +907,10 @@ sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $l
if [[ $? -eq 0 ]]; then
echo_ok
else
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
echo_skipped
warn "$(cat $log_file)"
else
echo_failed
error "$(cat $log_file)"
@ -903,6 +922,7 @@ else
read OK
done
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
fi
fi
echononl "Eanable nextcloud app '$_app'.."
@ -936,6 +956,10 @@ sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $l
if [[ $? -eq 0 ]]; then
echo_ok
else
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
echo_skipped
warn "$(cat $log_file)"
else
echo_failed
error "$(cat $log_file)"
@ -947,6 +971,7 @@ else
read OK
done
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
fi
fi
echononl "Eanable nextcloud app '$_app'.."
@ -1004,6 +1029,10 @@ sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $l
if [[ $? -eq 0 ]]; then
echo_ok
else
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
echo_skipped
warn "$(cat $log_file)"
else
echo_failed
error "$(cat $log_file)"
@ -1015,6 +1044,7 @@ else
read OK
done
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
fi
fi
echononl "Eanable nextcloud app '$_app'.."
@ -1046,6 +1076,10 @@ sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $l
if [[ $? -eq 0 ]]; then
echo_ok
else
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
echo_skipped
warn "$(cat $log_file)"
else
echo_failed
error "$(cat $log_file)"
@ -1057,6 +1091,7 @@ else
read OK
done
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
fi
fi
echononl "Eanable nextcloud app '$_app'.."