From bcd8f4fba4f0ba37e0036519ad0d03f25194a770 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Tue, 30 Jan 2018 12:57:11 +0100 Subject: [PATCH] update readme --- README.md | 5 ++++- rootfs/etc/cont-init.d/00-nextcloud | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a5b15db..494f430 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@ [Nextcloud](https://nextcloud.com/) with ldap authentication (needs a postgres database). +Seperately installed apps are not persistent because there is no possibility of +setting the app_path with occ. + # Volumes - `/var/lib/nextcloud/data` -- `/var/lib/nextcloud/apps` +- `/etc/nextcloud/` # Environment Variables ## DOMAIN diff --git a/rootfs/etc/cont-init.d/00-nextcloud b/rootfs/etc/cont-init.d/00-nextcloud index bbdde70..92c25a1 100644 --- a/rootfs/etc/cont-init.d/00-nextcloud +++ b/rootfs/etc/cont-init.d/00-nextcloud @@ -3,8 +3,6 @@ set -ex cd /usr/share/webapps/nextcloud -#PGPASSWORD=$DB_PASSWORD psql -h $DB_HOST -U $DB_USER -d $DB_NAME -c "SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = '${DB_TABLE_PREFIX}appconfig')" | grep f - if [ ! -f /var/lib/nextcloud/data/.installed ]; then s6-setuidgid nginx ./occ maintenance:install \ --database=pgsql \ @@ -101,5 +99,3 @@ s6-setuidgid nginx ./occ config:app:set --value "0" user_ldap ldap_turn_on_pwd_c s6-setuidgid nginx ./occ config:app:set --value "" user_ldap ldap_dynamic_group_member_url s6-setuidgid nginx ./occ config:app:set --value "" user_ldap ldap_default_ppolicy_dn s6-setuidgid nginx ./occ config:app:set --value "1" user_ldap ldap_configuration_active - -sed -i -e "s|'maintenance' => false,|'maintenance' => false,'apps_paths' => array (0 => array ('path' => '/usr/share/webapps/nextcloud/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ('path' => '/var/lib/nextcloud/apps', 'url' => '/apps-appstore', 'writable' => true,),),|g" /etc/nextcloud/config.php