1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

Move directory setup/mods.d to local

This commit is contained in:
downtownallday
2020-06-11 21:18:05 -04:00
parent 27c1b93bcf
commit 1f35e9ef91
6 changed files with 13 additions and 14 deletions

View File

@@ -2,15 +2,15 @@
#
# Test the setup modification script setup/mods.available/remote-nextcloud.sh
# Prerequisites:
#
# - Nextcloud is already installed and MiaB-LDAP is already
# configured to use it.
#
# ie. remote-nextcloud.sh was run on MiaB-LDAP by
# setup/start.sh because there was a symbolic link from
# setup/mods.d/remote-nextcloud.sh to the script in
# local/remote-nextcloud.sh to the script in
# mods.available
#
# - The remote Nextcloud has been configured to use MiaB-LDAP
# for users and groups.
#

View File

@@ -56,7 +56,6 @@ before_miab_install() {
H1 "BEFORE MIAB-LDAP INSTALL"
H2 "Update /etc/hosts"
#update_hosts_for_private_ip || die "Could not update /etc/hosts"
set_system_hostname || die "Could not set hostname"
# update system time
@@ -86,9 +85,10 @@ before_miab_install() {
# enable the remote Nextcloud setup mod, which tells MiaB-LDAP to use
# the remote Nextcloud for calendar and contacts instead of the
# MiaB-installed one
H2 "Create setup/mods.d/remote-nextcloud.sh symbolic link"
if [ ! -e "setup/mods.d/remote-nextcloud.sh" ]; then
ln -s "../mods.available/remote-nextcloud.sh" "setup/mods.d/remote-nextcloud.sh" || die "Could not create remote-nextcloud.sh symlink"
H2 "Create local/remote-nextcloud.sh symbolic link"
if [ ! -e "local/remote-nextcloud.sh" ]; then
mkdir -p local
ln -s "../setup/mods.available/remote-nextcloud.sh" "local/remote-nextcloud.sh" || die "Could not create remote-nextcloud.sh symlink"
fi
# install Docker