add nextcloud
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2023-01-15 10:12:57 +01:00
parent c0f347a14f
commit 54bd3fa8bb
11 changed files with 364 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
if (( "$(vercmp "$2" '21.0.0-6')" < 0 )); then
printf "WARNING: Major changes introduced to package!\n"
printf " The application is now run as its own user - nextcloud.\n"
printf " Default directories for runtime, state and log files are provided.\n"
printf " A convenience wrapper around occ is provided in /usr/bin/occ.\n"
# directories below /usr/share/webapps/nextcloud are still group-owned by the
# nextcloud user due to nextcloud < 21.0.0
find /usr/share/webapps/nextcloud -type d -exec chgrp root {} \;
fi
if (( "$(vercmp "$2" '22.0.0-1')" < 0 )); then
printf "NOTE: The application's .htaccess file is now located in /etc/webapps/nextcloud/.\n"
fi
}