mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-10 01:17:19 +00:00
Install latest roundcube (master) which supports php 8.1
This commit is contained in:
parent
15bcf678d9
commit
ad5a647d36
@ -146,14 +146,6 @@ init_miab_testing() {
|
|||||||
rc=1
|
rc=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if array_contains "--qa-ca" "$@"; then
|
|
||||||
echo "Copy certificate authority"
|
|
||||||
if ! cp tests/assets/ssl/ca_*.pem $STORAGE_ROOT/ssl; then
|
|
||||||
echo "Copy failed ($?)"
|
|
||||||
rc=1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# create miab_ldap.conf to specify what the Nextcloud LDAP service
|
# create miab_ldap.conf to specify what the Nextcloud LDAP service
|
||||||
# account password will be to avoid a random one created by start.sh
|
# account password will be to avoid a random one created by start.sh
|
||||||
if [ ! -z "$LDAP_NEXTCLOUD_PASSWORD" ]; then
|
if [ ! -z "$LDAP_NEXTCLOUD_PASSWORD" ]; then
|
||||||
@ -169,6 +161,35 @@ init_miab_testing() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# process command line args
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case "$1" in
|
||||||
|
--qa-ca )
|
||||||
|
echo "Copy certificate authority"
|
||||||
|
shift
|
||||||
|
if ! cp tests/assets/ssl/ca_*.pem $STORAGE_ROOT/ssl; then
|
||||||
|
echo "Copy failed ($?)"
|
||||||
|
rc=1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
--enable-mod=* )
|
||||||
|
local mod="$(awk -F= '{print $2}' <<<"$1")"
|
||||||
|
shift
|
||||||
|
echo "Enabling local mod '$mod'"
|
||||||
|
if ! enable_miab_mod "$mod"; then
|
||||||
|
echo "Enabling mod '$mod' failed"
|
||||||
|
rc=1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
* )
|
||||||
|
# ignore unknown option - may be interpreted elsewhere
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
# now that we've copied our files, unmount STORAGE_ROOT if
|
# now that we've copied our files, unmount STORAGE_ROOT if
|
||||||
# encryption-at-rest was enabled
|
# encryption-at-rest was enabled
|
||||||
ehdd/umount.sh
|
ehdd/umount.sh
|
||||||
|
15
tests/vagrant/vanilla/Vagrantfile
vendored
15
tests/vagrant/vanilla/Vagrantfile
vendored
@ -10,10 +10,23 @@ Vagrant.configure("2") do |config|
|
|||||||
|
|
||||||
config.vm.define "vanilla" do |m1|
|
config.vm.define "vanilla" do |m1|
|
||||||
m1.vm.provision :shell, :inline => <<-SH
|
m1.vm.provision :shell, :inline => <<-SH
|
||||||
|
cat >/tmp/provision.sh <<EOF
|
||||||
|
#!/bin/bash
|
||||||
|
if [ \$EUID -ne 0 ]; then
|
||||||
|
echo "Must be root"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
cd /mailinabox
|
cd /mailinabox
|
||||||
export PRIMARY_HOSTNAME=vanilla.local
|
export PRIMARY_HOSTNAME=vanilla.local
|
||||||
export FEATURE_MUNIN=false
|
export FEATURE_MUNIN=false
|
||||||
tests/system-setup/vanilla.sh
|
export FEATURE_NEXTCLOUD=false
|
||||||
|
tests/system-setup/vanilla.sh \
|
||||||
|
--enable-mod=roundcube-master \
|
||||||
|
--enable-mod=roundcube-debug \
|
||||||
|
--enable-mod=rcmcarddav-composer
|
||||||
|
EOF
|
||||||
|
chmod +x /tmp/provision.sh
|
||||||
|
/tmp/provision.sh
|
||||||
SH
|
SH
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user