!9 fix samba configure
From: @dou33 Reviewed-by: @handsome_feng Signed-off-by: @handsome_feng
This commit is contained in:
commit
75c4c6d4ea
@ -1,7 +1,7 @@
|
|||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
Name: peony-extensions
|
Name: peony-extensions
|
||||||
Version: 3.0.1
|
Version: 3.0.1
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Peony qt extensions (common files)
|
Summary: Peony qt extensions (common files)
|
||||||
License: LGPL-3.0+
|
License: LGPL-3.0+
|
||||||
URL: http://www.ukui.org
|
URL: http://www.ukui.org
|
||||||
@ -54,12 +54,30 @@ popd
|
|||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post
|
||||||
|
|
||||||
|
[ -d /var/lib/samba/usershares ] || mkdir /var/lib/samba/usershares
|
||||||
|
chmod 0777 /var/lib/samba/usershares
|
||||||
|
sed -i '/^\[global/a \\tusershare allow guests = yes\n\tusershare path = /var/lib/samba/usershares\n\tusershare max shares = 100\n\tusershare owner only = yes' /etc/samba/smb.conf
|
||||||
|
systemctl restart smb
|
||||||
|
systemctl restart nmb
|
||||||
|
systemctl enable smb
|
||||||
|
systemctl enable nmb
|
||||||
|
|
||||||
|
%preun
|
||||||
|
sed -i '/usershare/d' /etc/samba/smb.conf
|
||||||
|
systemctl restart smb
|
||||||
|
systemctl restart nmb
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc debian/copyright debian/changelog
|
%doc debian/copyright debian/changelog
|
||||||
%{_libdir}/peony-extensions
|
%{_libdir}/peony-extensions
|
||||||
%{_prefix}/share/
|
%{_prefix}/share/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 14 2020 douyan <douyan@kylinos.cn> - 3.0.1-3
|
||||||
|
- fix samba configure issue
|
||||||
|
|
||||||
* Tue Dec 8 2020 douyan <douyan@kylinos.cn> - 3.0.1-2
|
* Tue Dec 8 2020 douyan <douyan@kylinos.cn> - 3.0.1-2
|
||||||
- fix-peony-share-failed-issue
|
- fix-peony-share-failed-issue
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user