Wrong home directory after fresh install
After a fresh installation of version 1.10.1~ynh1, the data of the gitea user is in /home/gitea/
. However, the home directory of the gitea user in /etc/passwd
is listed as /opt/yunohost/gitea/
(which is a non-existing directory). This prevents ssh from finding the authorized_keys file and thus prevents ssh-based interaction with gitea. Changing the directory in /etc/passwd
fixes the issue.
Proposed fix: I believe the line
ynh_system_user_create --username= $app --home_dir=/opt/yunohost/$app --use_shell
in the two scripts scripts/install
and scripts/restore
should be changed to
ynh_system_user_create --username=$app --home_dir=/home/$app --use_shell
Edited by Holger Dell