|
|
@ -37,10 +37,6 @@ function assert_miaou_server { |
|
|
(>&2 echo 'ERROR: either miaou-{incus,proxmox} must be installed on this host prior running this command!' && exit 10) |
|
|
(>&2 echo 'ERROR: either miaou-{incus,proxmox} must be installed on this host prior running this command!' && exit 10) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function assert_fake_sympa { |
|
|
|
|
|
[[ $(fqdn) == 'topcode' ]] && [[ -d /opt/miaou-incus ]] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function install_sympa_tools { |
|
|
function install_sympa_tools { |
|
|
for file in "$BASEDIR"/../resources/tools/*; do |
|
|
for file in "$BASEDIR"/../resources/tools/*; do |
|
|
miaou-push $CONTAINER $file /opt/miaou-sympa/tools/ |
|
|
miaou-push $CONTAINER $file /opt/miaou-sympa/tools/ |
|
|
@ -48,15 +44,6 @@ function install_sympa_tools { |
|
|
miaou-exec $CONTAINER -- ln -sf /usr/lib/sympa/bin/sympa.pl /opt/miaou-sympa/tools/ |
|
|
miaou-exec $CONTAINER -- ln -sf /usr/lib/sympa/bin/sympa.pl /opt/miaou-sympa/tools/ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function install_fake_additional { |
|
|
|
|
|
assert_fake_sympa || return |
|
|
|
|
|
|
|
|
|
|
|
echo 'install fake additional TODO: not yet functional...' |
|
|
|
|
|
# miaou-push $CONTAINER $HOME/.ssh/id_ed25519 /root/.ssh/ |
|
|
|
|
|
# miaou-push $CONTAINER $HOME/.ssh/id_ed25519.pub /root/.ssh/ |
|
|
|
|
|
# miaou-recipe "$CONTAINER" "$BASEDIR"/../recipe/sympa_ldap_auth_remote.recipe |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# MAIN |
|
|
# MAIN |
|
|
|
|
|
|
|
|
set -Eue |
|
|
set -Eue |
|
|
@ -66,4 +53,3 @@ assert_miaou_server |
|
|
miaou-recipe "$CONTAINER" "$BASEDIR"/../recipe/sympa.recipe |
|
|
miaou-recipe "$CONTAINER" "$BASEDIR"/../recipe/sympa.recipe |
|
|
miaou-recipe "$CONTAINER" "$BASEDIR"/../recipe/sympa_custom_style.recipe |
|
|
miaou-recipe "$CONTAINER" "$BASEDIR"/../recipe/sympa_custom_style.recipe |
|
|
install_sympa_tools |
|
|
install_sympa_tools |
|
|
install_fake_additional |
|
|
|