check for existence of old config file before config migration
Signed-off-by: Andras Timar <andras.timar@collabora.com> Change-Id: Ia2db31f47efc8e130cccd915b7a3de5c10265d40
This commit is contained in:
parent
b6c9b05e8e
commit
c3077012ad
2 changed files with 2 additions and 2 deletions
|
@ -188,7 +188,7 @@ echo " Done."
|
|||
%post
|
||||
setcap cap_fowner,cap_chown,cap_mknod,cap_sys_chroot=ep /usr/bin/coolforkit
|
||||
setcap cap_sys_admin=ep /usr/bin/coolmount
|
||||
/usr/bin/coolconfig migrateconfig --write
|
||||
if [ -f /etc/loolwsd/loolwsd.xml ]; then /usr/bin/coolconfig migrateconfig --write; fi
|
||||
|
||||
%if 0%{?rhel} >= 7
|
||||
%systemd_post coolwsd.service
|
||||
|
|
2
debian/coolwsd.postinst.in
vendored
2
debian/coolwsd.postinst.in
vendored
|
@ -6,7 +6,7 @@ case "$1" in
|
|||
configure)
|
||||
setcap cap_fowner,cap_chown,cap_mknod,cap_sys_chroot=ep /usr/bin/coolforkit || true
|
||||
setcap cap_sys_admin=ep /usr/bin/coolmount || true
|
||||
/usr/bin/coolconfig migrateconfig --write
|
||||
if [ -f /etc/loolwsd/loolwsd.xml ]; then /usr/bin/coolconfig migrateconfig --write || true; fi
|
||||
|
||||
adduser --quiet --system --group --home /opt/cool cool
|
||||
chown cool: /etc/coolwsd/coolwsd.xml
|
||||
|
|
Loading…
Reference in a new issue