Compare commits
3 Commits
1_6-16_el8
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| d3bbc056cd | |||
| b3d12732d3 | |||
| c90b1683f2 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
|||||||
*.rpm
|
*.rpm
|
||||||
*.log
|
*.log
|
||||||
*spec-20*
|
*spec-20*
|
||||||
*.tar.gz
|
*.tar.xz
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
contribs10
|
contribs11
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#-----------------------------------
|
#-----------------------------------
|
||||||
|
|
||||||
#database creation
|
#database creation
|
||||||
mysqladmin create smeadmin 2>err
|
mariadb-admin create smeadmin 2>err
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo -n "Error in the creation of the database : "
|
echo -n "Error in the creation of the database : "
|
||||||
@@ -21,9 +21,7 @@ fi
|
|||||||
PASS=$(/sbin/e-smith/db configuration getprop smeadmind DbPassword)
|
PASS=$(/sbin/e-smith/db configuration getprop smeadmind DbPassword)
|
||||||
|
|
||||||
#user creation
|
#user creation
|
||||||
mysql -e " grant all privileges on smeadmin.* \
|
mariadb -e " create user smeadmin@localhost identified by '$PASS' " 2>err
|
||||||
to 'smeadmin'@'localhost' \
|
|
||||||
identified by '$PASS' " 2>err
|
|
||||||
|
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
@@ -33,8 +31,20 @@ else
|
|||||||
echo -e "Creation of mysql user :\t\t[OK]"
|
echo -e "Creation of mysql user :\t\t[OK]"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mariadb -e " grant all privileges on smeadmin.* \
|
||||||
|
to 'smeadmin'@'localhost' \
|
||||||
|
identified by '$PASS' " 2>err
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
echo -n "Error in the permissions grant to mysql user : "
|
||||||
|
cat err
|
||||||
|
else
|
||||||
|
echo -e "Permissions grant to mysql user :\t\t[OK]"
|
||||||
|
fi
|
||||||
|
|
||||||
#table creation
|
#table creation
|
||||||
mysql smeadmin < /usr/share/doc/smeserver-smeadmin/tables.sql 2>err
|
mariadb smeadmin < /usr/share/doc/smeserver-smeadmin/tables.sql 2>err
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
echo -n "Error in the creation of the tables : "
|
echo -n "Error in the creation of the tables : "
|
||||||
@@ -46,4 +56,4 @@ fi
|
|||||||
rm -f err
|
rm -f err
|
||||||
|
|
||||||
#validation des modifications
|
#validation des modifications
|
||||||
mysqladmin flush-privileges
|
mariadb-admin flush-privileges
|
||||||
|
|||||||
Binary file not shown.
@@ -7,7 +7,7 @@ Summary: A graphical monitor, alert raising, and services supervision tool for y
|
|||||||
%define name smeserver-smeadmin
|
%define name smeserver-smeadmin
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
%define version 1.6
|
%define version 1.6
|
||||||
%define release 16
|
%define release 19
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
@@ -27,6 +27,7 @@ Requires: rrdtool
|
|||||||
Requires: hddtemp
|
Requires: hddtemp
|
||||||
Requires: sysstat
|
Requires: sysstat
|
||||||
Requires: lm_sensors
|
Requires: lm_sensors
|
||||||
|
Requires: perl-DBD-mysql
|
||||||
#Obsoletes: smeserver-sme8admin
|
#Obsoletes: smeserver-sme8admin
|
||||||
|
|
||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
@@ -81,8 +82,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Oct 07 2025 Brian Read <brianr@koozali.org> 1.6-16.sme
|
* Thu Oct 23 2025 Vasarhelyi Zsolt <zsoltv@koozali.org> 1.6-19.sme
|
||||||
- Apply change from startform to start_form and endform to end_form to CGI panels [SME: 12775-87]
|
- Add requires perl-DBD-mysql [SME: 12961]
|
||||||
|
|
||||||
|
* Thu Oct 23 2025 Vasarhelyi Zsolt <zsoltv@koozali.org> 1.6-18.sme
|
||||||
|
- Fix database creation script [SME: 12961]
|
||||||
|
|
||||||
|
* Wed Oct 08 2025 Brian Read <brianr@koozali.org> 1.6-17.sme
|
||||||
|
- Apply change from startform to start_form and endform to end_form to CGI panels [SME: 12787]
|
||||||
|
- fix .gitignore and delete tarball from git repo [SME: 12787]
|
||||||
|
|
||||||
* Sat Sep 07 2024 cvs2git.sh aka Brian Read <brianr@koozali.org> 1.6-15.sme
|
* Sat Sep 07 2024 cvs2git.sh aka Brian Read <brianr@koozali.org> 1.6-15.sme
|
||||||
- Roll up patches and move to git repo [SME: 12338]
|
- Roll up patches and move to git repo [SME: 12338]
|
||||||
|
|||||||
Reference in New Issue
Block a user