@@ -211,10 +211,10 @@ collect_param_mysql(){
211211 elif [ ${1} = 4 ]; then
212212 if [ " ${OS} " = " centos" ]; then
213213 mysqlserver=" mysql"
214+ setsebool -P httpd_can_network_connect_db on
214215 installsql=" 0"
215216 else
216217 mysqlserver=" default-mysql-client"
217- setsebool -P httpd_can_network_connect_db on
218218 installsql=" 0"
219219 fi
220220 message_print_out 1 " Install Client on ${OS} : ${mysqlserver} "
@@ -572,8 +572,6 @@ install_programs_now(){
572572 # diese Änderung ist notwendig, da sonst die server.conf nicht per Web editiert werden kann
573573 # bzw. der OpenVPN-Server schlicht nicht starten mag
574574 sed -i " s/SELINUX=enforcing/SELINUX=disabled/" " /etc/selinux/config"
575- sed -i
" s/WorkingDirectory=\/etc\/openvpn\/server/WorkingDirectory=\/etc\/openvpn/g" " /etc/systemd/system/multi-user.target.wants/[email protected] " 576- systemctl daemon-reload
577575 systemctl -f
enable [email protected] 578576
579577 systemctl start httpd >> ${CURRENT_PATH} /loginstall.log
@@ -1025,8 +1023,11 @@ set_permissions(){
10251023
10261024 chown -R root ${updpath}
10271025 chmod -R 600 ${updpath}
1026+ chown nobody:nobody /etc/openvpn/ccd
10281027
10291028 if [ " ${OS} " == " centos" ]; then
1029+ sed -i
" s/WorkingDirectory=\/etc\/openvpn\/server/WorkingDirectory=\/etc\/openvpn/g" " /etc/systemd/system/multi-user.target.wants/[email protected] " 1030+ systemctl daemon-reload
10301031 chcon -R --reference=/var/www /srv/www
10311032 chcon -t httpd_sys_content_t ${OVPN_FULL_PATH} -R
10321033 chcon -t httpd_sys_rw_content_t ${OVPN_FULL_PATH} /data/ -R
0 commit comments