On update ommit update apps because it is done within main update procedure.
This commit is contained in:
parent
146bcee838
commit
6626385965
@ -858,381 +858,381 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# -----
|
## -----
|
||||||
# - (Re)install/(Re)enable some more nextcloud apps
|
## - (Re)install/(Re)enable some more nextcloud apps
|
||||||
# -----
|
## -----
|
||||||
|
#
|
||||||
echo ""
|
#echo ""
|
||||||
echo ""
|
#echo ""
|
||||||
echo -e "\033[37m\033[1m(Re)install/(Re)enable some more nextcloud apps..\033[m"
|
#echo -e "\033[37m\033[1m(Re)install/(Re)enable some more nextcloud apps..\033[m"
|
||||||
echo ""
|
#echo ""
|
||||||
|
#
|
||||||
|
#
|
||||||
# - Install and enable nextcloud app 'calendar'
|
## - Install and enable nextcloud app 'calendar'
|
||||||
# -
|
## -
|
||||||
_app="calendar"
|
#_app="calendar"
|
||||||
|
#
|
||||||
echononl "Install nextcloud app '$_app'.."
|
#echononl "Install nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||||
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
|
# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
echo_skipped
|
# echo_skipped
|
||||||
warn "$(cat $log_file)"
|
# warn "$(cat $log_file)"
|
||||||
else
|
# else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
# fi
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
#echononl "Eanable nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||||
if [[ $? -eq 0 ]]; then
|
#if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
# echo_ok
|
||||||
else
|
#else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
|
#
|
||||||
blank_line
|
#blank_line
|
||||||
|
#
|
||||||
|
#
|
||||||
# - Install and enable nextcloud app 'contacts'
|
## - Install and enable nextcloud app 'contacts'
|
||||||
# -
|
## -
|
||||||
_app="contacts"
|
#_app="contacts"
|
||||||
|
#
|
||||||
echononl "Install nextcloud app '$_app'.."
|
#echononl "Install nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||||
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
|
# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
echo_skipped
|
# echo_skipped
|
||||||
warn "$(cat $log_file)"
|
# warn "$(cat $log_file)"
|
||||||
else
|
# else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
# fi
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
#echononl "Enable nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||||
if [[ $? -eq 0 ]]; then
|
#if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
# echo_ok
|
||||||
else
|
#else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
|
#
|
||||||
blank_line
|
#blank_line
|
||||||
|
#
|
||||||
|
#
|
||||||
# - Install and enable nextcloud app 'notes'
|
## - Install and enable nextcloud app 'notes'
|
||||||
# -
|
## -
|
||||||
_app="notes"
|
#_app="notes"
|
||||||
|
#
|
||||||
echononl "Install nextcloud app '$_app'.."
|
#echononl "Install nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||||
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
|
# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
echo_skipped
|
# echo_skipped
|
||||||
warn "$(cat $log_file)"
|
# warn "$(cat $log_file)"
|
||||||
else
|
# else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
# fi
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
#echononl "Eanable nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||||
if [[ $? -eq 0 ]]; then
|
#if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
# echo_ok
|
||||||
else
|
#else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
|
#
|
||||||
blank_line
|
#blank_line
|
||||||
|
#
|
||||||
|
#
|
||||||
# - Install and enable nextcloud app 'tasks'
|
## - Install and enable nextcloud app 'tasks'
|
||||||
# -
|
## -
|
||||||
_app="tasks"
|
#_app="tasks"
|
||||||
|
#
|
||||||
echononl "Install nextcloud app '$_app'.."
|
#echononl "Install nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||||
|
#
|
||||||
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
|
# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
echo_skipped
|
# echo_skipped
|
||||||
warn "$(cat $log_file)"
|
# warn "$(cat $log_file)"
|
||||||
else
|
# else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
# fi
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
#echononl "Eanable nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||||
if [[ $? -eq 0 ]]; then
|
#if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
# echo_ok
|
||||||
else
|
#else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
|
#
|
||||||
blank_line
|
#blank_line
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
if $INSTALL_COLABORA_ONLINE_APP ; then
|
#if $INSTALL_COLABORA_ONLINE_APP ; then
|
||||||
# - Install and enable nextcloud app 'richdocuments'
|
# # - Install and enable nextcloud app 'richdocuments'
|
||||||
# -
|
# # -
|
||||||
_app="richdocuments"
|
# _app="richdocuments"
|
||||||
|
#
|
||||||
echononl "Install nextcloud app '$_app'.."
|
# echononl "Install nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
# sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||||
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
|
# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
echo_skipped
|
# echo_skipped
|
||||||
warn "$(cat $log_file)"
|
# warn "$(cat $log_file)"
|
||||||
else
|
# else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
|
#
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
# echononl "Eanable nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
# sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||||
if [[ $? -eq 0 ]]; then
|
# if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
# echo_ok
|
||||||
else
|
# else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
# fi
|
||||||
|
#
|
||||||
|
#
|
||||||
echononl "Configure nextcloud app '$_app'.."
|
# echononl "Configure nextcloud app '$_app'.."
|
||||||
if [[ -z "$WOPI_URL" ]] ; then
|
# if [[ -z "$WOPI_URL" ]] ; then
|
||||||
echo_skipped
|
# echo_skipped
|
||||||
error "No Wopi URL given (variable 'WOPI_URL')."
|
# error "No Wopi URL given (variable 'WOPI_URL')."
|
||||||
else
|
# else
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" config:app:set richdocuments wopi_url --value="$WOPI_URL" >> $log_file 2>&1
|
# sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" config:app:set richdocuments wopi_url --value="$WOPI_URL" >> $log_file 2>&1
|
||||||
if [[ $? -eq 0 ]]; then
|
# if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
# echo_ok
|
||||||
else
|
# else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
# fi
|
||||||
fi
|
# fi
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
|
#
|
||||||
blank_line
|
#blank_line
|
||||||
|
#
|
||||||
|
#
|
||||||
# - Install and enable nextcloud app 'bruteforcesettings'
|
## - Install and enable nextcloud app 'bruteforcesettings'
|
||||||
# -
|
## -
|
||||||
_app="bruteforcesettings"
|
#_app="bruteforcesettings"
|
||||||
|
#
|
||||||
echononl "Install nextcloud app '$_app'.."
|
#echononl "Install nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||||
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
|
# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
echo_skipped
|
# echo_skipped
|
||||||
warn "$(cat $log_file)"
|
# warn "$(cat $log_file)"
|
||||||
else
|
# else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
# fi
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
#echononl "Eanable nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||||
|
#
|
||||||
if [[ $? -eq 0 ]]; then
|
#if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
# echo_ok
|
||||||
else
|
#else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
|
#
|
||||||
# - Install and enable nextcloud app 'announcementcenter'
|
## - Install and enable nextcloud app 'announcementcenter'
|
||||||
# -
|
## -
|
||||||
_app="announcementcenter"
|
#_app="announcementcenter"
|
||||||
|
#
|
||||||
echononl "Install nextcloud app '$_app'.."
|
#echononl "Install nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||||
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
|
# if grep -q -E "${_app}\s+already\s+installed" $log_file ; then
|
||||||
echo_skipped
|
# echo_skipped
|
||||||
warn "$(cat $log_file)"
|
# warn "$(cat $log_file)"
|
||||||
else
|
# else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
# fi
|
||||||
fi
|
#fi
|
||||||
|
#
|
||||||
echononl "Eanable nextcloud app '$_app'.."
|
#echononl "Eanable nextcloud app '$_app'.."
|
||||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||||
|
#
|
||||||
if [[ $? -eq 0 ]]; then
|
#if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
# echo_ok
|
||||||
else
|
#else
|
||||||
echo_failed
|
# echo_failed
|
||||||
error "$(cat $log_file)"
|
# error "$(cat $log_file)"
|
||||||
|
#
|
||||||
echononl "continue anyway [yes/no]: "
|
# echononl "continue anyway [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||||
echononl "Wrong entry! - repeat [yes/no]: "
|
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||||
read OK
|
# read OK
|
||||||
done
|
# done
|
||||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
|
|
||||||
# -----
|
# -----
|
||||||
|
Loading…
Reference in New Issue
Block a user