Commit f9d72b7
Marian Marinov
builds/hawk-centos7.spec: Fixes for the install and upgrade processes
During upgrade of hawk, we are deleting the hawk user, which deletes
the sqlite file, that was initially created during installation.
It also leaves the hawk group, which results in issues during upgrade
and install.
In addition we were missing the creation of the cache dir, when we
were upgrading, because %postun was called without check if it was
un upgrade or uninstall.
The fixes here try to solve the above provlems.1 parent acd5889 commit f9d72b7
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | | - | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | | - | |
102 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
103 | 109 | | |
104 | 110 | | |
105 | 111 | | |
| |||
0 commit comments