mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-15 19:05:09 +01:00
Auto update indices on NextCloud update
This commit is contained in:
parent
4549fd56a9
commit
ef3f029b8e
10 changed files with 10 additions and 0 deletions
|
@ -51,6 +51,7 @@ if version_greater "$image_version" "$installed_version"; then
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
run_as 'php /var/www/html/occ upgrade'
|
run_as 'php /var/www/html/occ upgrade'
|
||||||
|
run_as 'php /var/www/html/occ db:add-missing-indices'
|
||||||
|
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
||||||
echo "The following apps have beed disabled:"
|
echo "The following apps have beed disabled:"
|
||||||
|
|
|
@ -51,6 +51,7 @@ if version_greater "$image_version" "$installed_version"; then
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
run_as 'php /var/www/html/occ upgrade'
|
run_as 'php /var/www/html/occ upgrade'
|
||||||
|
run_as 'php /var/www/html/occ db:add-missing-indices'
|
||||||
|
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
||||||
echo "The following apps have beed disabled:"
|
echo "The following apps have beed disabled:"
|
||||||
|
|
|
@ -51,6 +51,7 @@ if version_greater "$image_version" "$installed_version"; then
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
run_as 'php /var/www/html/occ upgrade'
|
run_as 'php /var/www/html/occ upgrade'
|
||||||
|
run_as 'php /var/www/html/occ db:add-missing-indices'
|
||||||
|
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
||||||
echo "The following apps have beed disabled:"
|
echo "The following apps have beed disabled:"
|
||||||
|
|
|
@ -51,6 +51,7 @@ if version_greater "$image_version" "$installed_version"; then
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
run_as 'php /var/www/html/occ upgrade'
|
run_as 'php /var/www/html/occ upgrade'
|
||||||
|
run_as 'php /var/www/html/occ db:add-missing-indices'
|
||||||
|
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
||||||
echo "The following apps have beed disabled:"
|
echo "The following apps have beed disabled:"
|
||||||
|
|
|
@ -51,6 +51,7 @@ if version_greater "$image_version" "$installed_version"; then
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
run_as 'php /var/www/html/occ upgrade'
|
run_as 'php /var/www/html/occ upgrade'
|
||||||
|
run_as 'php /var/www/html/occ db:add-missing-indices'
|
||||||
|
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
||||||
echo "The following apps have beed disabled:"
|
echo "The following apps have beed disabled:"
|
||||||
|
|
|
@ -51,6 +51,7 @@ if version_greater "$image_version" "$installed_version"; then
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
run_as 'php /var/www/html/occ upgrade'
|
run_as 'php /var/www/html/occ upgrade'
|
||||||
|
run_as 'php /var/www/html/occ db:add-missing-indices'
|
||||||
|
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
||||||
echo "The following apps have beed disabled:"
|
echo "The following apps have beed disabled:"
|
||||||
|
|
|
@ -51,6 +51,7 @@ if version_greater "$image_version" "$installed_version"; then
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
run_as 'php /var/www/html/occ upgrade'
|
run_as 'php /var/www/html/occ upgrade'
|
||||||
|
run_as 'php /var/www/html/occ db:add-missing-indices'
|
||||||
|
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
||||||
echo "The following apps have beed disabled:"
|
echo "The following apps have beed disabled:"
|
||||||
|
|
|
@ -51,6 +51,7 @@ if version_greater "$image_version" "$installed_version"; then
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
run_as 'php /var/www/html/occ upgrade'
|
run_as 'php /var/www/html/occ upgrade'
|
||||||
|
run_as 'php /var/www/html/occ db:add-missing-indices'
|
||||||
|
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
||||||
echo "The following apps have beed disabled:"
|
echo "The following apps have beed disabled:"
|
||||||
|
|
|
@ -51,6 +51,7 @@ if version_greater "$image_version" "$installed_version"; then
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
run_as 'php /var/www/html/occ upgrade'
|
run_as 'php /var/www/html/occ upgrade'
|
||||||
|
run_as 'php /var/www/html/occ db:add-missing-indices'
|
||||||
|
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
||||||
echo "The following apps have beed disabled:"
|
echo "The following apps have beed disabled:"
|
||||||
|
|
|
@ -51,6 +51,7 @@ if version_greater "$image_version" "$installed_version"; then
|
||||||
|
|
||||||
if [ "$installed_version" != "0.0.0.0" ]; then
|
if [ "$installed_version" != "0.0.0.0" ]; then
|
||||||
run_as 'php /var/www/html/occ upgrade'
|
run_as 'php /var/www/html/occ upgrade'
|
||||||
|
run_as 'php /var/www/html/occ db:add-missing-indices'
|
||||||
|
|
||||||
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
run_as 'php /var/www/html/occ app:list' | sed -n "/Enabled:/,/Disabled:/p" > /tmp/list_after
|
||||||
echo "The following apps have beed disabled:"
|
echo "The following apps have beed disabled:"
|
||||||
|
|
Loading…
Add table
Reference in a new issue