Only warn if an app is already installed.
This commit is contained in:
parent
0e9148d6a4
commit
7eeab15a4b
@ -759,6 +759,10 @@ sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $l
|
|||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
|
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
|
echo_skipped
|
||||||
|
warn "$(cat $log_file)"
|
||||||
|
else
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $log_file)"
|
error "$(cat $log_file)"
|
||||||
|
|
||||||
@ -770,6 +774,7 @@ else
|
|||||||
read OK
|
read OK
|
||||||
done
|
done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
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
|
if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
|
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
|
echo_skipped
|
||||||
|
warn "$(cat $log_file)"
|
||||||
|
else
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $log_file)"
|
error "$(cat $log_file)"
|
||||||
|
|
||||||
@ -814,6 +823,7 @@ else
|
|||||||
read OK
|
read OK
|
||||||
done
|
done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
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
|
if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
|
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
|
echo_skipped
|
||||||
|
warn "$(cat $log_file)"
|
||||||
|
else
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $log_file)"
|
error "$(cat $log_file)"
|
||||||
|
|
||||||
@ -858,6 +872,7 @@ else
|
|||||||
read OK
|
read OK
|
||||||
done
|
done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
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
|
if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
|
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
|
echo_skipped
|
||||||
|
warn "$(cat $log_file)"
|
||||||
|
else
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $log_file)"
|
error "$(cat $log_file)"
|
||||||
|
|
||||||
@ -903,6 +922,7 @@ else
|
|||||||
read OK
|
read OK
|
||||||
done
|
done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
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
|
if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
|
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
|
echo_skipped
|
||||||
|
warn "$(cat $log_file)"
|
||||||
|
else
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $log_file)"
|
error "$(cat $log_file)"
|
||||||
|
|
||||||
@ -947,6 +971,7 @@ else
|
|||||||
read OK
|
read OK
|
||||||
done
|
done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
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
|
if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
|
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
|
echo_skipped
|
||||||
|
warn "$(cat $log_file)"
|
||||||
|
else
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $log_file)"
|
error "$(cat $log_file)"
|
||||||
|
|
||||||
@ -1015,6 +1044,7 @@ else
|
|||||||
read OK
|
read OK
|
||||||
done
|
done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
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
|
if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
|
if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
|
echo_skipped
|
||||||
|
warn "$(cat $log_file)"
|
||||||
|
else
|
||||||
echo_failed
|
echo_failed
|
||||||
error "$(cat $log_file)"
|
error "$(cat $log_file)"
|
||||||
|
|
||||||
@ -1057,6 +1091,7 @@ else
|
|||||||
read OK
|
read OK
|
||||||
done
|
done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
[[ $OK = "yes" ]] || fatal "Interrupted ny user."
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
echononl "Eanable nextcloud app '$_app'.."
|
||||||
|
Loading…
Reference in New Issue
Block a user