move jq section
This commit is contained in:
@@ -43,14 +43,11 @@ msg_info "Configuring database connection and unattended setup"
|
|||||||
cd /var/www/html/$var_project_name
|
cd /var/www/html/$var_project_name
|
||||||
UMBRACO_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
UMBRACO_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
||||||
|
|
||||||
jq '. + {
|
jq --arg umbracopass "$UMBRACO_PASS" '. + {
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
|
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
|
||||||
"umbracoDbDSN_ProviderName": "Microsoft.Data.Sqlite"
|
"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": {
|
"Umbraco": {
|
||||||
"CMS": {
|
"CMS": {
|
||||||
"_Comment": "Remove the Unattended section after first run",
|
"_Comment": "Remove the Unattended section after first run",
|
||||||
|
|||||||
Reference in New Issue
Block a user