Skip to content

Commit d66002a

Browse files
authored
Merge pull request #1708 from nextcloud/fix/1702/fix-enabling-apps
fix the apps not getting enabled on migration
2 parents 6eeba9d + 8281abe commit d66002a

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

Containers/nextcloud/entrypoint.sh

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -397,16 +397,14 @@ else
397397
fi
398398

399399
# AIO app
400-
if [ "$(php /var/www/html/occ config:app:get nextcloud-aio enabled)" = "" ]; then
401-
php /var/www/html/occ app:enable nextcloud-aio
402-
elif [ "$(php /var/www/html/occ config:app:get nextcloud-aio enabled)" = "no" ]; then
400+
if [ "$(php /var/www/html/occ config:app:get nextcloud-aio enabled)" != "yes" ]; then
403401
php /var/www/html/occ app:enable nextcloud-aio
404402
fi
405403

406404
# Notify push
407405
if ! [ -d "/var/www/html/custom_apps/notify_push" ]; then
408406
php /var/www/html/occ app:install notify_push
409-
elif [ "$(php /var/www/html/occ config:app:get notify_push enabled)" = "no" ]; then
407+
elif [ "$(php /var/www/html/occ config:app:get notify_push enabled)" != "yes" ]; then
410408
php /var/www/html/occ app:enable notify_push
411409
elif [ "$SKIP_UPDATE" != 1 ]; then
412410
php /var/www/html/occ app:update notify_push
@@ -419,7 +417,7 @@ php /var/www/html/occ config:app:set notify_push base_endpoint --value="https://
419417
if [ "$COLLABORA_ENABLED" = 'yes' ]; then
420418
if ! [ -d "/var/www/html/custom_apps/richdocuments" ]; then
421419
php /var/www/html/occ app:install richdocuments
422-
elif [ "$(php /var/www/html/occ config:app:get richdocuments enabled)" = "no" ]; then
420+
elif [ "$(php /var/www/html/occ config:app:get richdocuments enabled)" != "yes" ]; then
423421
php /var/www/html/occ app:enable richdocuments
424422
elif [ "$SKIP_UPDATE" != 1 ]; then
425423
php /var/www/html/occ app:update richdocuments
@@ -479,7 +477,7 @@ if [ "$ONLYOFFICE_ENABLED" = 'yes' ]; then
479477
done
480478
if ! [ -d "/var/www/html/custom_apps/onlyoffice" ]; then
481479
php /var/www/html/occ app:install onlyoffice
482-
elif [ "$(php /var/www/html/occ config:app:get onlyoffice enabled)" = "no" ]; then
480+
elif [ "$(php /var/www/html/occ config:app:get onlyoffice enabled)" != "yes" ]; then
483481
php /var/www/html/occ app:enable onlyoffice
484482
elif [ "$SKIP_UPDATE" != 1 ]; then
485483
php /var/www/html/occ app:update onlyoffice
@@ -498,7 +496,7 @@ fi
498496
if [ "$TALK_ENABLED" = 'yes' ]; then
499497
if ! [ -d "/var/www/html/custom_apps/spreed" ]; then
500498
php /var/www/html/occ app:install spreed
501-
elif [ "$(php /var/www/html/occ config:app:get spreed enabled)" = "no" ]; then
499+
elif [ "$(php /var/www/html/occ config:app:get spreed enabled)" != "yes" ]; then
502500
php /var/www/html/occ app:enable spreed
503501
elif [ "$SKIP_UPDATE" != 1 ]; then
504502
php /var/www/html/occ app:update spreed
@@ -528,7 +526,7 @@ if [ "$CLAMAV_ENABLED" = 'yes' ]; then
528526
done
529527
if ! [ -d "/var/www/html/custom_apps/files_antivirus" ]; then
530528
php /var/www/html/occ app:install files_antivirus
531-
elif [ "$(php /var/www/html/occ config:app:get files_antivirus enabled)" = "no" ]; then
529+
elif [ "$(php /var/www/html/occ config:app:get files_antivirus enabled)" != "yes" ]; then
532530
php /var/www/html/occ app:enable files_antivirus
533531
elif [ "$SKIP_UPDATE" != 1 ]; then
534532
php /var/www/html/occ app:update files_antivirus
@@ -564,21 +562,21 @@ if [ "$FULLTEXTSEARCH_ENABLED" = 'yes' ]; then
564562
done
565563
if ! [ -d "/var/www/html/custom_apps/fulltextsearch" ]; then
566564
php /var/www/html/occ app:install fulltextsearch
567-
elif [ "$(php /var/www/html/occ config:app:get fulltextsearch enabled)" = "no" ]; then
565+
elif [ "$(php /var/www/html/occ config:app:get fulltextsearch enabled)" != "yes" ]; then
568566
php /var/www/html/occ app:enable fulltextsearch
569567
elif [ "$SKIP_UPDATE" != 1 ]; then
570568
php /var/www/html/occ app:update fulltextsearch
571569
fi
572570
if ! [ -d "/var/www/html/custom_apps/fulltextsearch_elasticsearch" ]; then
573571
php /var/www/html/occ app:install fulltextsearch_elasticsearch
574-
elif [ "$(php /var/www/html/occ config:app:get fulltextsearch_elasticsearch enabled)" = "no" ]; then
572+
elif [ "$(php /var/www/html/occ config:app:get fulltextsearch_elasticsearch enabled)" != "yes" ]; then
575573
php /var/www/html/occ app:enable fulltextsearch_elasticsearch
576574
elif [ "$SKIP_UPDATE" != 1 ]; then
577575
php /var/www/html/occ app:update fulltextsearch_elasticsearch
578576
fi
579577
if ! [ -d "/var/www/html/custom_apps/files_fulltextsearch" ]; then
580578
php /var/www/html/occ app:install files_fulltextsearch
581-
elif [ "$(php /var/www/html/occ config:app:get files_fulltextsearch enabled)" = "no" ]; then
579+
elif [ "$(php /var/www/html/occ config:app:get files_fulltextsearch enabled)" != "yes" ]; then
582580
php /var/www/html/occ app:enable files_fulltextsearch
583581
elif [ "$SKIP_UPDATE" != 1 ]; then
584582
php /var/www/html/occ app:update files_fulltextsearch

0 commit comments

Comments
 (0)