remove post script
This commit is contained in:
parent
75c4c6d4ea
commit
908eea9fd4
@ -1,7 +1,7 @@
|
||||
%define debug_package %{nil}
|
||||
Name: peony-extensions
|
||||
Version: 3.0.1
|
||||
Release: 3
|
||||
Release: 4
|
||||
Summary: Peony qt extensions (common files)
|
||||
License: LGPL-3.0+
|
||||
URL: http://www.ukui.org
|
||||
@ -56,18 +56,7 @@ 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
|
||||
%doc debian/copyright debian/changelog
|
||||
@ -75,6 +64,9 @@ systemctl restart nmb
|
||||
%{_prefix}/share/
|
||||
|
||||
%changelog
|
||||
* Tue Dec 15 2020 douyan <douyan@kylinos.cn> - 3.0.1-4
|
||||
- remove post script
|
||||
|
||||
* Mon Dec 14 2020 douyan <douyan@kylinos.cn> - 3.0.1-3
|
||||
- fix samba configure issue
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user