From 7ea998377406dc7c2dc8ce041ddbb12252a06cf6 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 10 Jan 2021 17:43:09 +0100 Subject: [PATCH] Fix --- conf/config.json | 2 +- scripts/install | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/conf/config.json b/conf/config.json index f8f3d25..35902ef 100644 --- a/conf/config.json +++ b/conf/config.json @@ -144,7 +144,7 @@ }, "SqlSettings": { "DriverName": "mysql", - "DataSource": "mysql://__DB_NAME__:__DB_PASS__@localhost:3306/__DB_NAME__?charset=utf8mb4,utf8", + "DataSource": "mysql://__DB_NAME__:__DB_PASS__@tcp(127.0.0.1:3306)/__DB_NAME__?charset=utf8mb4,utf8&readTimeout=30s&writeTimeout=30s", "DataSourceReplicas": [], "DataSourceSearchReplicas": [], "MaxIdleConns": 20, diff --git a/scripts/install b/scripts/install index 028d046..2153cbd 100644 --- a/scripts/install +++ b/scripts/install @@ -135,9 +135,10 @@ ynh_store_file_checksum --file="$final_path/config/config.json" # SECURE FILES AND DIRECTORIES #================================================= -chown -R $app:www-data $final_path -chown -R $app:www-data $data_path +chown -R $app: $final_path +chown -R $app: $data_path chown -R $app:adm $logs_path +chmod -R g+w $final_path #================================================= # NGINX CONFIGURATION