Closed eauchat closed 2 years ago
Ok, so fiddling a bit I figured out the issue, I think it's that because I wasn't changing the path (only the domain), then the variable path_url
was not set, and therefore it could not be found in lines 104 and 110 of the change_url script.
I managed to change the url changing also the path, just had to move back nginx conf by hand and correct things in /var/www/opensondage/app/inc/config.php
.
Would be probably nice if the script had a way to revert it's changes when it exits on error.
Describe the bug
I was trying to change the url of this app from the webadmin from
something.domain.tld/date
todomain.tld/date
(both domains being obviously registered in yunohost). The operation failed, here are the logs from it:It seems the problem comes from this:
but I don't see what's problematic at line 104 to the change_url script.
From that, there are two problems, one is that the app still thinks to be registered on
something.domain.tld
, the second one is that I realized that theopensondage.conf
nginx file has already been moved to/etc/nginx/conf.d/domain.tld.d/
so the app doesn't work anymore on it's past domain as well.Context
Steps to reproduce
The equivalent command, which I then tried as well is:
sudo yunohost app change-url opensondage -d domain.tld -p "date"