Skip to content

Commit bd2953d

Browse files
authored
Add --skip-ssl option to MySQL commands (#354)
1 parent a6ceb1c commit bd2953d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

traccar/rootfs/etc/cont-init.d/mysql.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if bashio::services.available "mysql"; then
2626

2727
# Create database if not exists
2828
echo "CREATE DATABASE IF NOT EXISTS traccar;" \
29-
| mysql -h "${host}" -P "${port}" -u "${username}" -p"${password}"
29+
| mysql --skip-ssl -h "${host}" -P "${port}" -u "${username}" -p"${password}"
3030

3131
# Update Traccar XML configuration for database
3232
xmlstarlet ed -L -s /properties \

traccar/rootfs/etc/cont-init.d/traccar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ else
2828
username=$(bashio::services "mysql" "username")
2929

3030
echo "UPDATE DATABASECHANGELOGLOCK SET locked=0;" \
31-
| mysql -h "${host}" -P "${port}" -u "${username}" -p"${password}" \
31+
| mysql --skip-ssl -h "${host}" -P "${port}" -u "${username}" -p"${password}" \
3232
traccar || true
3333
fi
3434
fi

0 commit comments

Comments
 (0)