https://bugs.koozali.org/show_bug.cgi?id=12372

--- Comment #3 from Jean-Philippe Pialasse <[email protected]> ---
seems it should restart it ... but no go 

https://github.com/CollaboraOnline/online/blob/master/coolwsd.spec.in

%post
setcap cap_fowner,cap_chown,cap_mknod,cap_sys_chroot=ep /usr/bin/coolforkit
setcap cap_sys_admin=ep /usr/bin/coolmount
if [ -f /etc/loolwsd/loolwsd.xml ]; then /usr/bin/coolconfig migrateconfig
--write; fi
# compatibility with older systemd versions
SYSTEMD_VERSION=$(busctl --system get-property org.freedesktop.systemd1
/org/freedesktop/systemd1 org.freedesktop.systemd1.Manager Version | grep -Eo
[0-9]{3})
if [[ "$SYSTEMD_VERSION" -lt "228" ]]; then
    sed -i "/^ProtectSystem/d" /usr/lib/systemd/system/coolwsd.service
fi
if [[ "$SYSTEMD_VERSION" -lt "231" ]]; then
    sed -i "/^ReadWritePaths/d" /usr/lib/systemd/system/coolwsd.service
fi
if [[ "$SYSTEMD_VERSION" -lt "232" ]]; then
    sed -i "/^ProtectControlGroups/d" /usr/lib/systemd/system/coolwsd.service
fi

if [ $1 -eq 1 ] ; then
    # Initial installation
    systemctl preset coolwsd.service >/dev/null 2>&1 || :
fi

systemctl is-active -q coolwsd && COOLWSD_IS_ACTIVE=1 || COOLWSD_IS_ACTIVE=0
if [ $COOLWSD_IS_ACTIVE == "1" ]; then systemctl stop coolwsd; fi

# Figure out where LOKit is installed, let's hope it is not a mount point
# Create a directory for coolwsd on the same file system
lokitroot=/opt/collaboraoffice
coolparent=`cd ${lokitroot} && cd .. && /bin/pwd`

rm -rf ${coolparent}/cool
mkdir -p ${coolparent}/cool/child-roots
chown cool:cool ${coolparent}/cool
chown cool:cool ${coolparent}/cool/child-roots

fc-cache ${lokitroot}/share/fonts/truetype
coolwsd-systemplate-setup ${coolparent}/cool/systemplate ${lokitroot}
>/dev/null 2>&1
coolwsd-generate-proof-key >/dev/null 2>&1

if [ $COOLWSD_IS_ACTIVE == "1" ]; then systemctl start coolwsd; fi

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to