mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Update upgrade
This commit is contained in:
parent
dc77d76d26
commit
61bc1ff066
1 changed files with 3 additions and 3 deletions
|
@ -39,6 +39,9 @@ filter_boring_occ_warnings() {
|
||||||
sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
|
sed -E 's@\s*([0-9]+\/[0-9]+\s+\[(-|>|=)+\]\s+[0-9]+%|\s*Starting ...|Nextcloud or one of the apps require upgrade - only a limited number of commands are available|You may use your browser or the occ upgrade command to do the upgrade)@@g'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
current_version=$(grep OC_VersionString "$install_dir/version.php" | cut -d\' -f2)
|
||||||
|
current_major_version=${current_version%%.*}
|
||||||
|
|
||||||
# Define a function to execute commands with `occ`
|
# Define a function to execute commands with `occ`
|
||||||
exec_occ() {
|
exec_occ() {
|
||||||
# Backward compatibility to upgrade from older versions
|
# Backward compatibility to upgrade from older versions
|
||||||
|
@ -133,9 +136,6 @@ function list_installed_apps_not_compatible_with_future_version()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
current_version=$(grep OC_VersionString "$install_dir/version.php" | cut -d\' -f2)
|
|
||||||
current_major_version=${current_version%%.*}
|
|
||||||
|
|
||||||
last_version=$(ynh_read_manifest --manifest_key="resources.sources.main.url" | grep -o '[0-9][0-9]\.[0-9]\.[0-9]')
|
last_version=$(ynh_read_manifest --manifest_key="resources.sources.main.url" | grep -o '[0-9][0-9]\.[0-9]\.[0-9]')
|
||||||
last_major_version=${last_version%%.*}
|
last_major_version=${last_version%%.*}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue