Browse Source
Merge branch 'testing' into Upgrade-to-version-19.0.1
pull/324/head
Kayou
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
11 additions and
9 deletions
-
conf/nginx.conf
-
scripts/_common.sh
-
scripts/upgrade
-
scripts/upgrade.d/upgrade.last.sh
|
|
|
@ -78,8 +78,8 @@ location ^~ __PATH__/ { |
|
|
|
deny all; |
|
|
|
} |
|
|
|
|
|
|
|
location ~ ^__PATH__/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy)\.php(?:$|\/) { |
|
|
|
fastcgi_split_path_info ^(.+?\.php)(\/.*|)$; |
|
|
|
location ~ ^__PATH__/(?:index|remote|public|cron|core\/ajax\/update|status|ocs\/v[12]|updater\/.+|oc[ms]-provider\/.+|.+\/richdocumentscode\/proxy)\.php(\/.*|)$ { |
|
|
|
fastcgi_split_path_info ^(.+?\.php)(/.*|)$; |
|
|
|
set $path_info $fastcgi_path_info; |
|
|
|
try_files $fastcgi_script_name =404; |
|
|
|
include fastcgi_params; |
|
|
|
@ -139,7 +139,7 @@ location ^~ __PATH__/ { |
|
|
|
access_log off; |
|
|
|
} |
|
|
|
|
|
|
|
location ~ ^__PATH__/.+[^\/]\.(?:png|html|ttf|ico|jpg|jpeg|bcmap)$ { |
|
|
|
location ~* \.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$ { |
|
|
|
try_files $uri __PATH__/index.php$request_uri; |
|
|
|
# Optional: Don't log access to other assets |
|
|
|
access_log off; |
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ |
|
|
|
pkg_dependencies="imagemagick acl tar smbclient at" |
|
|
|
|
|
|
|
YNH_PHP_VERSION="7.3" |
|
|
|
extra_php_dependencies="php${YNH_PHP_VERSION}-bz2 php${YNH_PHP_VERSION}-imap php${YNH_PHP_VERSION}-smbclient php${YNH_PHP_VERSION}-gmp php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-apcu php${YNH_PHP_VERSION}-redis php${YNH_PHP_VERSION}-ldap php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-igbinary" |
|
|
|
extra_php_dependencies="php${YNH_PHP_VERSION}-bz2 php${YNH_PHP_VERSION}-imap php${YNH_PHP_VERSION}-smbclient php${YNH_PHP_VERSION}-gmp php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-apcu php${YNH_PHP_VERSION}-redis php${YNH_PHP_VERSION}-ldap php${YNH_PHP_VERSION}-imagick php${YNH_PHP_VERSION}-zip php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-xml php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-igbinary php${YNH_PHP_VERSION}-bcmath" |
|
|
|
|
|
|
|
#================================================= |
|
|
|
# EXPERIMENTAL HELPERS |
|
|
|
|
|
|
|
@ -244,17 +244,19 @@ then |
|
|
|
major_version=${last_version%%.*} |
|
|
|
current_major_version=${current_version%%.*} |
|
|
|
|
|
|
|
# Load the value for this version |
|
|
|
source upgrade.d/upgrade.$current_major_version.sh |
|
|
|
|
|
|
|
# If the current version has the same major version than the next one, |
|
|
|
# then it's the last upgrade to do |
|
|
|
if [ "$major_version" -eq "$current_major_version" ]; then |
|
|
|
# We also cover the case where the last version is the first of the current major version series |
|
|
|
# (e.g. 19.0.0 is the latest version) |
|
|
|
if [[ ("$major_version" -eq "$current_major_version") || ( ("$major_version" -eq "$((current_major_version+1))") && ("$next_version" == "$last_version") ) ]]; then |
|
|
|
current_major_version=last |
|
|
|
# Execute the commands dedicated to the last upgrade |
|
|
|
last_upgrade_operations |
|
|
|
fi |
|
|
|
|
|
|
|
# Load the value for this version |
|
|
|
source upgrade.d/upgrade.$current_major_version.sh |
|
|
|
|
|
|
|
ynh_print_info --message="Upgrade to nextcloud $next_version" |
|
|
|
|
|
|
|
# Create an app.src for this version of nextcloud |
|
|
|
|
|
|
|
@ -12,5 +12,5 @@ last_upgrade_operations () { |
|
|
|
cp -a ../sources/patches_last_version/* ../sources/patches |
|
|
|
|
|
|
|
# Execute post-upgrade operations later on |
|
|
|
(cd /tmp ; at now + 10 minutes <<< "(cd $final_path ; sudo -u $app php${YNH_PHP_VERSION} occ db:add-missing-indices ; sudo -u $app php${YNH_PHP_VERSION} occ db:convert-filecache-bigint -n) > /tmp/${app}_maintenance.log") |
|
|
|
(cd /tmp ; at now + 10 minutes <<< "(cd $final_path ; sudo -u $app php${YNH_PHP_VERSION} occ db:add-missing-indices ; sudo -u $app php${YNH_PHP_VERSION} occ db:add-missing-columns ; sudo -u $app php${YNH_PHP_VERSION} occ db:convert-filecache-bigint -n) > /tmp/${app}_maintenance.log") |
|
|
|
} |