File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
traccar/rootfs/etc/cont-init.d Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 \
Original file line number Diff line number Diff line change 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
3434fi
You can’t perform that action at this time.
0 commit comments