Update jellystat.sh

This commit is contained in:
CanbiZ 2025-12-08 15:58:20 +01:00
parent a246ea835f
commit a08e96d8be

View File

@ -194,8 +194,8 @@ function install() {
}
fi
# Create database
sudo -u postgres psql -c "CREATE DATABASE ${DB_NAME} WITH OWNER ${DB_USER} ENCODING 'UTF8';" || {
# Create database (use template0 for UTF8 encoding compatibility)
sudo -u postgres psql -c "CREATE DATABASE ${DB_NAME} WITH OWNER ${DB_USER} ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' TEMPLATE template0;" || {
msg_error "Failed to create PostgreSQL database"
return 1
}