nextcloudpi/updates/1.30.0.sh
nachoparker c10d4bd8fb upgrade to NC21.0.4
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-12 16:55:46 -06:00

32 lines
607 B
Bash

#!/bin/bash
set -e
## BACKWARD FIXES ( for older images )
source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE
# all images
# make sure these are installed as well in all upgrade paths
apt_install php${PHPVER}-gmp haveged lsb-release php-smbclient exfat-fuse exfat-utils file
# for NC19.0.1
apt_install php-bcmath
## delayed in bg so it does not kill the connection, and we get AJAX response
bash -c "sleep 3; service php${PHPVER}-fpm restart" &>/dev/null &
# docker images only
[[ -f /.docker-image ]] && {
:
}
# for non docker images
[[ ! -f /.docker-image ]] && {
:
}
exit 0