limesurvey data provided by configuration

This commit is contained in:
pvincent
2024-10-20 23:22:41 +04:00
parent 94825e3466
commit f7c796c002
5 changed files with 32 additions and 10 deletions
+2 -2
View File
@@ -45,10 +45,10 @@ function _create() {
echo "create empty database <$longname> ... OK"
admin_username=$(echo -e "$data" | yq '.admin.username')
[[ $admin_username == 'null ' ]] && echoerr "odoo12 recipe requires \`data:admin:username\` into miaou.yaml service definition of <$fqdn>" && exit 1
[[ $admin_username = 'null' ]] && echoerr "odoo12 recipe requires \`data:admin:username\` into miaou.yaml service definition of <$fqdn>" && exit 1
admin_password=$(echo -e "$data" | yq '.admin.password')
[[ $admin_password == 'null ' ]] && echoerr "odoo12 recipe requires \`data:admin:password\` into miaou.yaml service definition of <$fqdn>" && exit 1
[[ $admin_password = 'null' ]] && echoerr "odoo12 recipe requires \`data:admin:password\` into miaou.yaml service definition of <$fqdn>" && exit 1
cat <<EOF | lxc_exec "$container"
set -Eeuo pipefail