Closed maniackcrudelis closed 6 years ago
I also face the same issue on YNH 2.6.
If you want, you can try this version that is not totally upgraded
Same Here, with YHN 2.6.4
@redvoodoochild Can you send a log for this problem ? Thank
Well, Now I can't : i've installed the version you posted above : https://github.com/magikcypress/roundcube_ynh And it's working like a charm.
The error was that composer could'nt be installed. Regards
Here's the log on YNH 2.6:
+ cp /var/cache/yunohost/from_file/roundcube_ynh-38bb39f7389c99086865230db189463e83227afa/sources/composer.json-dist /tmp/tmp.h9FdCmOorl/composer.json-dist
+ init_composer /tmp/tmp.h9FdCmOorl
+ local DESTDIR=/tmp/tmp.h9FdCmOorl
+ local AS_USER=admin
+ curl -sS https://getcomposer.org/installer
+ exec_as admin COMPOSER_HOME=/tmp/tmp.h9FdCmOorl/.composer php -- --quiet --install-dir=/tmp/tmp.h9FdCmOorl
+ local USER=admin
+ shift 1
++ whoami
+ [[ admin = root ]]
+ sudo sudo -u admin COMPOSER_HOME=/tmp/tmp.h9FdCmOorl/.composer php -- --quiet --install-dir=/tmp/tmp.h9FdCmOorl
The installation directory "/tmp/tmp.h9FdCmOorl" is not writable
+ ynh_die 'Unable to install Composer'
Warning: Unable to install Composer
+ echo 'Unable to install Composer'
+ exit 1
@maniackcrudelis awesome, thanks!
Roundcube fails on testing because the temp directory is set by root, and after that, composer is executed with admin.
So, admin has not enought right access to work.