mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
Stupid hack to avoid the removal of the document server crashing dpkg
This commit is contained in:
parent
80035a6c0e
commit
307937febe
2 changed files with 13 additions and 0 deletions
|
@ -134,6 +134,10 @@ echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-
|
|||
#=================================================
|
||||
ynh_print_info --message="Install OnlyOffice..."
|
||||
|
||||
# The onlyoffice dev had the magnificent idea to add a "nginx restart" during
|
||||
# the install/configure of their package, which is awful since that will
|
||||
# restart nginx and the whole webadmin and maybe even the yunohost command
|
||||
# running the install ...
|
||||
ynh_add_app_dependencies --package="onlyoffice-documentserver"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -36,7 +36,16 @@ supervisorctl stop all
|
|||
ynh_print_info --message="Removing OnlyOffice..."
|
||||
|
||||
ynh_secure_remove --file=/var/lib/dpkg/info/onlyoffice-documentserver.prerm
|
||||
|
||||
# Here you will wonder what the fuck this is, and the answer is : this is a
|
||||
# fucking stupid hack because onlyoffice's dev deviced to put a "supervisorctl
|
||||
# update" inside their postrm, but when their postrm is ran, supervisorctl is
|
||||
# already removed ... so their removal fails which breaks dpkg.
|
||||
# So instead, we trick it with this stupid link to /bin/true which is removed
|
||||
# right after.
|
||||
ln -s /bin/true /usr/local/bin/supervisorctl
|
||||
ynh_package_autopurge onlyoffice-documentserver
|
||||
ynh_secure_remove /usr/local/bin/supervisorctl
|
||||
|
||||
#=================================================
|
||||
# REMOVE THE POSTGRESQL DATABASE
|
||||
|
|
Loading…
Add table
Reference in a new issue