Skip to content

Commit

Permalink
Merge pull request #5902 from mailcow/feat/nextcloud-deprecation
Browse files Browse the repository at this point in the history
nextcloud: add deprecation notice once script start
  • Loading branch information
DerLinkman authored Jun 10, 2024
2 parents 1b2c2c0 + 533c4e7 commit f675af5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions helper-scripts/nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,39 @@
# renovate: datasource=github-releases depName=nextcloud/server versioning=semver extractVersion=^v(?<version>.*)$
NEXTCLOUD_VERSION=28.0.6

display_warning() {
local message=("$@")
local max_length=0

for line in "${message[@]}"; do
if (( ${#line} > max_length )); then
max_length=${#line}
fi
done

local border=$(printf '%*s' "$((max_length + 4))" '' | tr ' ' '#')

echo -e "\e[31m${border}"
for line in "${message[@]}"; do
printf "\e[31m# %-*s #\n" "$max_length" "$line"
done
echo -e "\e[31m${border}"
echo -e "\e[0m"
}

display_warning "WARNING: This Script is deprecated and will be removed in December 2024!" \
"mailcow will drop this installation/maintenance script within December 2024..." \
"To ensure you can still use your Nextcloud Datas, please migrate to a standalone" \
"Nextcloud instance either on a new Host or this host." \
"You can either use Nextcloud in Docker or install it manually." \
" "\
"mailcow will NOT DELETE any Nextcloud Data, even when this script was removed!!"

echo -e "Waiting 5 seconds before continuing..."


sleep 5

echo -ne "Checking prerequisites..."
sleep 1
for bin in curl dirmngr tar bzip2; do
Expand Down

0 comments on commit f675af5

Please sign in to comment.