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
|
||||
# -----
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
echo -e "\033[37m\033[1m(Re)install/(Re)enable some more nextcloud apps..\033[m"
|
||||
echo ""
|
||||
|
||||
|
||||
# - Install and enable nextcloud app 'calendar'
|
||||
# -
|
||||
_app="calendar"
|
||||
|
||||
echononl "Install nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
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)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
fi
|
||||
|
||||
echononl "Eanable nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "$(cat $log_file)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
|
||||
|
||||
blank_line
|
||||
|
||||
|
||||
# - Install and enable nextcloud app 'contacts'
|
||||
# -
|
||||
_app="contacts"
|
||||
|
||||
echononl "Install nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
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)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
fi
|
||||
|
||||
echononl "Eanable nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "$(cat $log_file)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
|
||||
|
||||
blank_line
|
||||
|
||||
|
||||
# - Install and enable nextcloud app 'notes'
|
||||
# -
|
||||
_app="notes"
|
||||
|
||||
echononl "Install nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
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)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
fi
|
||||
|
||||
echononl "Eanable nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "$(cat $log_file)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
|
||||
|
||||
blank_line
|
||||
|
||||
|
||||
# - Install and enable nextcloud app 'tasks'
|
||||
# -
|
||||
_app="tasks"
|
||||
|
||||
echononl "Install nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
|
||||
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)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
fi
|
||||
|
||||
echononl "Eanable nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "$(cat $log_file)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
|
||||
|
||||
blank_line
|
||||
|
||||
|
||||
|
||||
if $INSTALL_COLABORA_ONLINE_APP ; then
|
||||
# - Install and enable nextcloud app 'richdocuments'
|
||||
# -
|
||||
_app="richdocuments"
|
||||
|
||||
echononl "Install nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
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)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
fi
|
||||
|
||||
echononl "Eanable nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "$(cat $log_file)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
|
||||
|
||||
echononl "Configure nextcloud app '$_app'.."
|
||||
if [[ -z "$WOPI_URL" ]] ; then
|
||||
echo_skipped
|
||||
error "No Wopi URL given (variable 'WOPI_URL')."
|
||||
else
|
||||
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
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "$(cat $log_file)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
blank_line
|
||||
|
||||
|
||||
# - Install and enable nextcloud app 'bruteforcesettings'
|
||||
# -
|
||||
_app="bruteforcesettings"
|
||||
|
||||
echononl "Install nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
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)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
fi
|
||||
|
||||
echononl "Eanable nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "$(cat $log_file)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
|
||||
|
||||
# - Install and enable nextcloud app 'announcementcenter'
|
||||
# -
|
||||
_app="announcementcenter"
|
||||
|
||||
echononl "Install nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
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)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
fi
|
||||
|
||||
echononl "Eanable nextcloud app '$_app'.."
|
||||
sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
error "$(cat $log_file)"
|
||||
|
||||
echononl "continue anyway [yes/no]: "
|
||||
read OK
|
||||
OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
echononl "Wrong entry! - repeat [yes/no]: "
|
||||
read OK
|
||||
done
|
||||
[[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
fi
|
||||
## -----
|
||||
## - (Re)install/(Re)enable some more nextcloud apps
|
||||
## -----
|
||||
#
|
||||
#echo ""
|
||||
#echo ""
|
||||
#echo -e "\033[37m\033[1m(Re)install/(Re)enable some more nextcloud apps..\033[m"
|
||||
#echo ""
|
||||
#
|
||||
#
|
||||
## - Install and enable nextcloud app 'calendar'
|
||||
## -
|
||||
#_app="calendar"
|
||||
#
|
||||
#echononl "Install nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
#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)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
# fi
|
||||
#fi
|
||||
#
|
||||
#echononl "Eanable nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
#if [[ $? -eq 0 ]]; then
|
||||
# echo_ok
|
||||
#else
|
||||
# echo_failed
|
||||
# error "$(cat $log_file)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
#fi
|
||||
#
|
||||
#
|
||||
#blank_line
|
||||
#
|
||||
#
|
||||
## - Install and enable nextcloud app 'contacts'
|
||||
## -
|
||||
#_app="contacts"
|
||||
#
|
||||
#echononl "Install nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
#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)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
# fi
|
||||
#fi
|
||||
#
|
||||
#echononl "Enable nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
#if [[ $? -eq 0 ]]; then
|
||||
# echo_ok
|
||||
#else
|
||||
# echo_failed
|
||||
# error "$(cat $log_file)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
#fi
|
||||
#
|
||||
#
|
||||
#blank_line
|
||||
#
|
||||
#
|
||||
## - Install and enable nextcloud app 'notes'
|
||||
## -
|
||||
#_app="notes"
|
||||
#
|
||||
#echononl "Install nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
#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)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
# fi
|
||||
#fi
|
||||
#
|
||||
#echononl "Eanable nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
#if [[ $? -eq 0 ]]; then
|
||||
# echo_ok
|
||||
#else
|
||||
# echo_failed
|
||||
# error "$(cat $log_file)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
#fi
|
||||
#
|
||||
#
|
||||
#blank_line
|
||||
#
|
||||
#
|
||||
## - Install and enable nextcloud app 'tasks'
|
||||
## -
|
||||
#_app="tasks"
|
||||
#
|
||||
#echononl "Install nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
#
|
||||
#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)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
# fi
|
||||
#fi
|
||||
#
|
||||
#echononl "Eanable nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
#if [[ $? -eq 0 ]]; then
|
||||
# echo_ok
|
||||
#else
|
||||
# echo_failed
|
||||
# error "$(cat $log_file)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
#fi
|
||||
#
|
||||
#
|
||||
#blank_line
|
||||
#
|
||||
#
|
||||
#
|
||||
#if $INSTALL_COLABORA_ONLINE_APP ; then
|
||||
# # - Install and enable nextcloud app 'richdocuments'
|
||||
# # -
|
||||
# _app="richdocuments"
|
||||
#
|
||||
# echononl "Install nextcloud app '$_app'.."
|
||||
# sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
# 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)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
# fi
|
||||
# fi
|
||||
#
|
||||
# echononl "Eanable nextcloud app '$_app'.."
|
||||
# sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
# if [[ $? -eq 0 ]]; then
|
||||
# echo_ok
|
||||
# else
|
||||
# echo_failed
|
||||
# error "$(cat $log_file)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
# fi
|
||||
#
|
||||
#
|
||||
# echononl "Configure nextcloud app '$_app'.."
|
||||
# if [[ -z "$WOPI_URL" ]] ; then
|
||||
# echo_skipped
|
||||
# error "No Wopi URL given (variable 'WOPI_URL')."
|
||||
# else
|
||||
# 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
|
||||
# echo_ok
|
||||
# else
|
||||
# echo_failed
|
||||
# error "$(cat $log_file)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
# fi
|
||||
# fi
|
||||
#fi
|
||||
#
|
||||
#
|
||||
#blank_line
|
||||
#
|
||||
#
|
||||
## - Install and enable nextcloud app 'bruteforcesettings'
|
||||
## -
|
||||
#_app="bruteforcesettings"
|
||||
#
|
||||
#echononl "Install nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
#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)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
# fi
|
||||
#fi
|
||||
#
|
||||
#echononl "Eanable nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
#
|
||||
#if [[ $? -eq 0 ]]; then
|
||||
# echo_ok
|
||||
#else
|
||||
# echo_failed
|
||||
# error "$(cat $log_file)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
#fi
|
||||
#
|
||||
#
|
||||
## - Install and enable nextcloud app 'announcementcenter'
|
||||
## -
|
||||
#_app="announcementcenter"
|
||||
#
|
||||
#echononl "Install nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:install "$_app" > $log_file 2>&1
|
||||
#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)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
# fi
|
||||
#fi
|
||||
#
|
||||
#echononl "Eanable nextcloud app '$_app'.."
|
||||
#sudo -u "$HTTP_USER" "$php_binary" "${INSTALL_DIR}/occ" app:enable "$_app" > $log_file 2>&1
|
||||
#
|
||||
#if [[ $? -eq 0 ]]; then
|
||||
# echo_ok
|
||||
#else
|
||||
# echo_failed
|
||||
# error "$(cat $log_file)"
|
||||
#
|
||||
# echononl "continue anyway [yes/no]: "
|
||||
# read OK
|
||||
# OK="$(echo "$OK" | tr '[:upper:]' '[:lower:]')"
|
||||
# while [[ "$OK" != "yes" ]] && [[ "$OK" != "no" ]] ; do
|
||||
# echononl "Wrong entry! - repeat [yes/no]: "
|
||||
# read OK
|
||||
# done
|
||||
# [[ $OK = "yes" ]] || fatal "Interrupted by user."
|
||||
#fi
|
||||
|
||||
|
||||
# -----
|
||||
|
Loading…
Reference in New Issue
Block a user