File tree Expand file tree Collapse file tree 3 files changed +2
-20
lines changed Expand file tree Collapse file tree 3 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -190,9 +190,6 @@ ELSE()
190
190
SET (localstatedir ${MYSQL_DATADIR} )
191
191
ENDIF ()
192
192
193
- get_filename_component (MYSQL_UNIX_DIR ${MYSQL_UNIX_ADDR} DIRECTORY )
194
- SET (mysqlunixdir ${MYSQL_UNIX_DIR} )
195
-
196
193
SET (resolveip_locations "$basedir/${INSTALL_BINDIR} $basedir/bin" )
197
194
SET (mysqld_locations "$basedir/${INSTALL_SBINDIR} $basedir/libexec $basedir/sbin $basedir/bin" )
198
195
SET (errmsg_locations "$basedir/${INSTALL_MYSQLSHAREDIR} /english $basedir/share/english $basedir/share/mysql/english" )
@@ -210,18 +207,6 @@ INSTALL_SCRIPT(
210
207
DESTINATION ${INSTALL_SCRIPTDIR}
211
208
COMPONENT Server
212
209
)
213
-
214
- CONFIGURE_FILE (${CMAKE_CURRENT_SOURCE_DIR} /galera_new_cluster.sh
215
- ${CMAKE_CURRENT_BINARY_DIR} /galera_new_cluster ESCAPE_QUOTES @ONLY )
216
- EXECUTE_PROCESS (
217
- COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR} /galera_new_cluster
218
- )
219
-
220
- INSTALL_SCRIPT (
221
- "${CMAKE_CURRENT_BINARY_DIR} /galera_new_cluster"
222
- DESTINATION ${INSTALL_SCRIPTDIR}
223
- COMPONENT Server
224
- )
225
210
ENDIF ()
226
211
227
212
SET (prefix "${CMAKE_INSTALL_PREFIX} " )
Original file line number Diff line number Diff line change 21
21
exit 0
22
22
fi
23
23
24
- echo _WSREP_NEW_CLUSTER=' --wsrep-new-cluster' > @mysqlunixdir@/ " wsrep-new-cluster- ${1 :- mariadb} " && \
24
+ systemctl set-environment _WSREP_NEW_CLUSTER=' --wsrep-new-cluster' && \
25
25
systemctl restart ${1:- mariadb}
26
26
27
27
extcode=$?
28
28
29
- rm -f @mysqlunixdir@/ " wsrep-new-cluster- ${1 :- mariadb} "
29
+ systemctl set-environment _WSREP_NEW_CLUSTER= ' '
30
30
31
31
exit $extcode
Original file line number Diff line number Diff line change @@ -70,9 +70,6 @@ ProtectSystem=full
70
70
# Prevent accessing /home, /root and /run/user
71
71
ProtectHome=true
72
72
73
- # Use an environment file to pass variable _WSREP_NEW_CLUSTER
74
- EnvironmentFile=-@mysqlunixdir@/wsrep-new-cluster-%N
75
-
76
73
# Use an environment file to pass variable _WSREP_START_POSITION
77
74
EnvironmentFile=-@mysqlunixdir@/wsrep-start-position
78
75
You can’t perform that action at this time.
0 commit comments