move jq section

This commit is contained in:
montagneid
2026-05-08 14:19:06 +02:00
parent 36ad604c25
commit 6bec431d72

View File

@@ -43,14 +43,11 @@ msg_info "Configuring database connection and unattended setup"
cd /var/www/html/$var_project_name
UMBRACO_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
jq '. + {
jq --arg umbracopass "$UMBRACO_PASS" '. + {
"ConnectionStrings": {
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
"umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite"
}
}' /var/www/html/$var_project_name/appsettings.json > /tmp/appsettings.tmp && mv /tmp/appsettings.tmp /var/www/html/$var_project_name/appsettings.json
jq --arg umbracopass "$UMBRACO_PASS" '. + {
},
"Umbraco": {
"CMS": {
"_Comment": "Remove the Unattended section after first run",