Skip to content

Commit b7dcb92

Browse files
author
Till Brehm
committed
Merge branch 'myisam_ftp' into 'master'
pureftpd mysql transactions off due to myisam engine disabled mysql transactions, because the engine of **ftp_user** is MyISAM and removed empty lines See merge request !538
2 parents fadef44 + 22844d4 commit b7dcb92

File tree

1 file changed

+1
-39
lines changed

1 file changed

+1
-39
lines changed

install/tpl/pureftpd_mysql.conf.master

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,30 @@
55
# #
66
##############################################
77

8-
98
# Optional : MySQL server name or IP. Don't define this for unix sockets.
10-
119
MYSQLServer {mysql_server_ip}
1210

13-
1411
# Optional : MySQL port. Don't define this if a local unix socket is used.
15-
1612
# MYSQLPort 3306
1713

18-
1914
# Optional : define the location of mysql.sock if the server runs on this host.
20-
2115
# MYSQLSocket /var/run/mysqld/mysqld.sock
2216

23-
2417
# Mandatory : user to bind the server as.
25-
2618
MYSQLUser {mysql_server_ispconfig_user}
2719

28-
2920
# Mandatory : user password. You must have a password.
30-
3121
MYSQLPassword {mysql_server_ispconfig_password}
3222

33-
3423
# Mandatory : database to open.
35-
3624
MYSQLDatabase {mysql_server_database}
3725

38-
3926
# Mandatory : how passwords are stored
4027
# Valid values are : "cleartext", "crypt", "md5" and "password"
4128
# ("password" = MySQL password() function)
4229
# You can also use "any" to try "crypt", "md5" *and* "password"
43-
4430
MYSQLCrypt crypt
4531

46-
4732
# In the following directives, parts of the strings are replaced at
4833
# run-time before performing queries :
4934
#
@@ -56,73 +41,50 @@ MYSQLCrypt crypt
5641
# Very complex queries can be performed using these substitution strings,
5742
# especially for virtual hosting.
5843

59-
6044
# Query to execute in order to fetch the password
61-
6245
MYSQLGetPW SELECT password FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
6346

64-
6547
# Query to execute in order to fetch the system user name or uid
66-
6748
MYSQLGetUID SELECT uid FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
6849

69-
7050
# Optional : default UID - if set this overrides MYSQLGetUID
71-
7251
#MYSQLDefaultUID 1000
7352

74-
7553
# Query to execute in order to fetch the system user group or gid
76-
7754
MYSQLGetGID SELECT gid FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
7855

79-
8056
# Optional : default GID - if set this overrides MYSQLGetGID
81-
8257
#MYSQLDefaultGID 1000
8358

84-
8559
# Query to execute in order to fetch the home directory
86-
8760
MYSQLGetDir SELECT dir FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
8861

89-
9062
# Optional : query to get the maximal number of files
9163
# Pure-FTPd must have been compiled with virtual quotas support.
92-
9364
MySQLGetQTAFS SELECT quota_files FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND quota_files != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
9465

95-
9666
# Optional : query to get the maximal disk usage (virtual quotas)
9767
# The number should be in Megabytes.
9868
# Pure-FTPd must have been compiled with virtual quotas support.
99-
10069
MySQLGetQTASZ SELECT quota_size FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND quota_size != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
10170

102-
10371
# Optional : ratios. The server has to be compiled with ratio support.
104-
10572
MySQLGetRatioUL SELECT ul_ratio FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND ul_ratio != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
10673
MySQLGetRatioDL SELECT dl_ratio FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND dl_ratio != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
10774

108-
10975
# Optional : bandwidth throttling.
11076
# The server has to be compiled with throttling support.
11177
# Values are in KB/s .
112-
11378
MySQLGetBandwidthUL SELECT ul_bandwidth FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND ul_bandwidth != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
11479
MySQLGetBandwidthDL SELECT dl_bandwidth FROM ftp_user WHERE active = 'y' AND server_id = '{server_id}' AND dl_bandwidth != '-1' AND username="\L" AND (expires IS NULL OR expires="0000-00-00 00:00:00" OR expires > NOW())
11580

11681
# Enable ~ expansion. NEVER ENABLE THIS BLINDLY UNLESS :
11782
# 1) You know what you are doing.
11883
# 2) Real and virtual users match.
119-
12084
# MySQLForceTildeExpansion 1
12185

122-
12386
# If you upgraded your tables to transactionnal tables (Gemini,
12487
# BerkeleyDB, Innobase...), you can enable SQL transactions to
12588
# avoid races. Leave this commented if you are using the
12689
# traditionnal MyIsam databases or old (< 3.23.x) MySQL versions.
127-
128-
MySQLTransactions On
90+
# MySQLTransactions On

0 commit comments

Comments
 (0)