aur/nextcloud/nextcloud.install
nyyu 54bd3fa8bb
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful
add nextcloud
2023-01-15 10:13:02 +01:00

17 lines
808 B
Plaintext

# 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
}