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