Subversion Repositories ALCASAR

Rev

Rev 3286 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3286 Rev 3294
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 3286 2025-05-21 13:33:19Z rexy $
2
# $Id: alcasar-uninstall.sh 3294 2025-07-20 22:26:38Z rexy $
3
 
3
 
4
# alcasar-uninstall.sh
4
# alcasar-uninstall.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 52... Line 52...
52
	[ -e /etc/ntp.conf.default ] && mv /etc/ntp.conf.default /etc/ntp.conf && echo -n "1"
52
	[ -e /etc/ntp.conf.default ] && mv /etc/ntp.conf.default /etc/ntp.conf && echo -n "1"
53
}
53
}
54
 
54
 
55
init_db ()
55
init_db ()
56
{
56
{
57
	echo -en "(2) : "
57
	echo -en "(3) : "
58
	[ -e /etc/my.cnf.default ] && mv -f /etc/my.cnf.default /etc/my.cnf && echo -n "1, "
58
	[ -e /etc/my.cnf.default ] && mv -f /etc/my.cnf.default /etc/my.cnf && echo -n "1, "
-
 
59
	[ -e /etc/my.cnf.d/server.cnf.default ] && mv /etc/my.cnf.d/server.cnf.default /etc/my.cnf.d/server.cnf && echo -n "2, "
59
	if [ -e /etc/systemd/system/mysqld.service ]
60
	if [ -e /etc/systemd/system/mysqld.service ]
60
	then
61
	then
61
		rm /etc/systemd/system/mysqld.service
62
		rm /etc/systemd/system/mysqld.service
62
		echo -n "2"
63
		echo -n "3"
63
	fi
64
	fi
64
	if [ -e /etc/systemd/system/mariadb.service ]
65
	if [ -e /etc/systemd/system/mariadb.service ]
65
	then
66
	then
66
		rm /etc/systemd/system/mariadb.service
67
		rm /etc/systemd/system/mariadb.service
67
		echo -n "2"
68
		echo -n "3"
68
	fi
69
	fi
69
	/usr/bin/systemctl daemon-reload
70
	/usr/bin/systemctl daemon-reload
70
	rm -rf /var/lib/mysql
71
	rm -rf /var/lib/mysql
71
}
72
}
72
 
73