home directory location of gitlab_ci_multi_runner is hardcoded
because the home directory location of the gitlab_ci_multi_runner user is hardcode it seems impossible to install it on NIS enabled machines.
On NIS enabled machines, the /home/ contains the NIS home directories and the local accounts have their home directories on /local/home/
The installer would not be able to create a home directory inside /home/.
We even tried to manually create the account and set its home directory to the local location /local/home/gitlab_ci_multi_runner
but it seems that the installer does assumes that the home directory of this user is in /home failing later.
+ dpkg -i gitlab-ci-multi-runner_amd64.deb
(Reading database ... 118334 files and directories currently installed.)
Preparing to unpack gitlab-ci-multi-runner_amd64.deb ...
FATA[0000] Failed to stop GitLab Runner: "systemctl" failed: exit status 5, Failed to stop gitlab-ci-multi-runner.service: Unit gitlab-ci-multi-runner.service not loaded.
FATA[0000] Failed to uninstall GitLab Runner: remove /etc/systemd/system/gitlab-ci-multi-runner.service: no such file or directory
Unpacking gitlab-ci-multi-runner (0.3.4-64-g3047c13-beta) over (0.3.4-64-g3047c13-beta) ...
Setting up gitlab-ci-multi-runner (0.3.4-64-g3047c13-beta) ...
/var/lib/dpkg/info/gitlab-ci-multi-runner.postinst: 16: cd: can't cd to /home/gitlab_ci_multi_runner
dpkg: error processing package gitlab-ci-multi-runner (--install):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
gitlab-ci-multi-runner
It seems that the minimal change that we would need is to get the home directory location from the OS and to allow the OS to decide where to create the home director.