Handle templates directory upgrade path
This commit is contained in:
parent
4a3bd53fad
commit
2749fb3023
@ -3,7 +3,7 @@
|
||||
|
||||
Name: domoticz
|
||||
Version: 2021.1
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Summary: Open source Home Automation System
|
||||
|
||||
License: GPLv3+ and ASL 2.0 and Boost and BSD and MIT
|
||||
@ -208,6 +208,11 @@ ln -s %{_sharedstatedir}/%{name}/templates \
|
||||
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/%{name}/plugins/AwoxSMP
|
||||
|
||||
|
||||
%pretrans
|
||||
# Handle directory move for a few releases
|
||||
rm -rf %{_datadir}/%{name}/www/templates
|
||||
|
||||
|
||||
%pre
|
||||
getent group domoticz >/dev/null || groupadd -r domoticz
|
||||
getent passwd domoticz >/dev/null || \
|
||||
@ -240,6 +245,9 @@ usermod -G domoticz,dialout domoticz
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jan 05 2022 Michael Cronenworth <mike@cchtml.com> - 2021.1-9
|
||||
- Handle templates directory upgrade path
|
||||
|
||||
* Mon Jan 03 2022 Michael Cronenworth <mike@cchtml.com> - 2021.1-8
|
||||
- Symlink web page templates directory (RHBZ#1975094)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user