1
0
ミラー元 https://github.com/mail-in-a-box/mailinabox.git 前回の同期 2026-03-24 19:07:23 +01:00

rename script "remote-nextcloud-use-miab.sh" to "connect-nextcloud-to-miab.sh"

このコミットが含まれているのは:
downtownallday
2022-06-28 16:43:27 -04:00
コミット 9b8fc905f6
4個のファイルの変更16行の追加7行の削除

ファイルの表示

@@ -31,7 +31,7 @@ Once enabled, you'll find that Roundcube and Z-Push (ActiveSync) will use the re
**On the remote Nextcloud**
Copy the file `setup/mods.available/remote-nextcloud-use-miab.sh` to the Nextcloud box and run it as root. This will configure Nextcloud's "LDAP user and group backend" with the MiaB-LDAP details and ensure the contacts and calendar apps are installed. *This does not replace or alter your ability to log into Nextcloud with any existing local Nextcloud accounts. It only allows MiaB-LDAP users to log into Nextcloud using their MiaB-LDAP credentials.*
Copy the file `setup/mods.available/connect-nextcloud-to-miab.sh` to the Nextcloud box and run it as root. This will configure Nextcloud's "LDAP user and group backend" with the MiaB-LDAP details and ensure the contacts and calendar apps are installed. *This does not replace or alter your ability to log into Nextcloud with any existing local Nextcloud accounts. It only allows MiaB-LDAP users to log into Nextcloud using their MiaB-LDAP credentials.*
## Under-the-Hood

ファイルの表示

@@ -11,6 +11,15 @@
# 4. optionally install and configure ssmtp so system mail is
# sent to MiaB-LDAP
#
# It should be run after configuring MiaB-LDAP to use a remote
# nextcloud, which is accomplished by enabling the setup mod
# "remote-nextcloud.sh." Creating a symbolic link to
# remote-nextcloud.sh in the directory
# <miab-installation-directory>/local with the same name enables the
# mod. You'll have to re-run setup by executing setup/start.sh (or
# ehdd/start-encrypted.sh if you're using encryption-at-rest).
#
VERBOSE=0

ファイルの表示

@@ -14,7 +14,7 @@
# - The remote Nextcloud has been configured to use MiaB-LDAP
# for users and groups.
#
# ie. remote-nextcloud-use-miab.sh was copied to the remote Nextcloud
# ie. connect-nextcloud-to-miab.sh was copied to the remote Nextcloud
# server and was run successfully there
#

ファイルの表示

@@ -140,16 +140,16 @@ connect_nextcloud_to_miab() {
|| die "docker: update-ca-certificates failed"
# execute the script that sets up Nextcloud
H2 "docker: run remote-nextcloud-use-miab.sh"
docker cp setup/mods.available/remote-nextcloud-use-miab.sh NC:/tmp \
|| die "docker: cp remote-nextcloud-use-miab.sh failed"
docker exec NC /tmp/remote-nextcloud-use-miab.sh \
H2 "docker: run connect-nextcloud-to-miab.sh"
docker cp setup/mods.available/connect-nextcloud-to-miab.sh NC:/tmp \
|| die "docker: cp connect-nextcloud-to-miab.sh failed"
docker exec NC /tmp/connect-nextcloud-to-miab.sh \
. \
"$NC_ADMIN_USER" \
"$NC_ADMIN_PASSWORD" \
"$PRIMARY_HOSTNAME" \
"$LDAP_NEXTCLOUD_PASSWORD" \
|| die "docker: error running remote-nextcloud-use-miab.sh"
|| die "docker: error running connect-nextcloud-to-miab.sh"
}