117 |
mkdir -p root/home/e-smith/db/mysql57 |
mkdir -p root/home/e-smith/db/mysql57 |
118 |
rm -rf root/etc/e-smith/templates.metadata/var/service |
rm -rf root/etc/e-smith/templates.metadata/var/service |
119 |
rm -rf root/service |
rm -rf root/service |
120 |
|
rm -rf root/etc/e-smith/templates/opt |
121 |
|
rm -rf root/etc/e-smith/templates/var/service |
122 |
|
|
123 |
%install |
%install |
124 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
128 |
--file /sbin/e-smith/systemd/mysql57-mysql.init 'attr(0757,mysql,mysql)' \ |
--file /sbin/e-smith/systemd/mysql57-mysql.init 'attr(0757,mysql,mysql)' \ |
129 |
--dir /var/log/mysql57-mysqld 'attr(2750,root,root)' \ |
--dir /var/log/mysql57-mysqld 'attr(2750,root,root)' \ |
130 |
--dir /home/e-smith/db/mysql57 'attr(0750,root,root)' \ |
--dir /home/e-smith/db/mysql57 'attr(0750,root,root)' \ |
131 |
|
| grep -vP '/opt/rh/rh-mysql57$' \ |
132 |
|
| grep -vP '/opt/rh/rh-mysql57/root$' \ |
133 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
134 |
#--dir /var/run/mysql57-mysqld 'attr(0757,mysql,mysql)' \ |
#--dir /var/run/mysql57-mysqld 'attr(0757,mysql,mysql)' \ |
135 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
136 |
|
# /opt/rh/rh-mysql57 and /opt/rh/rh-mysql57/root conflicts |
137 |
|
|
138 |
|
|
139 |
%clean |
%clean |
140 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |