(analysis) Remove xivo-fix-paths-rights

Description

The script xivo-fix-paths-rights is run after each Wazo upgrade. It is slowing down the upgrade is some cases, e.g. when sound files are mounted to a remote file system.

Since this script is a workaround for the Debian packaging to begin with, we should fix the Debian packaging up front and remove this script.


fblackburn's note

Steps to remove this script

  • Validate that asterisk paths (i.e. not /var/lib/wazo) are correctly chown by asterisk packaging

    • if not, then it should probably be added to asterisk packaging instead of this script

    • validate if www-data need to access these paths (maybe wazo-confd, wazo-calld?)

  • Remove all asterisk related paths (i.e. not related to wazo) if safe

  • Try to validate if sounds directory (/var/lib/wazo/sounds) is encouraged to be edited manually (documented, ask to support, etc..)

  • Remove this script execution from wazo-upgrade (pre-start.d) and make it manual only for troubleshooting

    • add small documentation, discussion with support, etc..

  • bonus: rename this script with a better name


Goal: check if the script is still needed and why files/folders have the wrong permissions. Create relates tasks for found issues.

Zendesk Ticket IDs

None

Activity

Show:

Alexandre Fournier September 24, 2024 at 5:20 PM
Edited

The script fix-paths-rights seems to be really old. All the directories of asterisk are handled by the asterisk packaging.

/var/spool/asterisk/voicemail is used by wazo-calld

in asterisk packaging, asterisk.postinst:

Done

Priority

Assignee

Reporter

Approvers

Pascal Cadotte

Fix versions

Sprint

Story Points

Created May 13, 2024 at 3:52 PM
Updated October 9, 2024 at 6:06 PM
Resolved October 7, 2024 at 7:34 PM