- stop gitlab:
gitlab-ctl stop- move
/var/opt/gitlabinside our prefix:
mv /var/opt/gitlab /opt/gitlab/data
ln -s /opt/gitlab/data /var/opt/gitlab- set the
git_data_dirin/etc/gitlab/gitlab.rb, because this path couldn't content symlinks:
git_data_dir "/opt/gitlab/data/git-data"and re-create configuration files (the first run of gitlab-ctl reconfigure after a major change often fails):
gitlab-ctl reconfigure || gitlab-ctl reconfigure- move
/var/log/gitlabthere:
mv /var/log/gitlab /opt/gitlab/logs
ln -s /opt/gitlab/logs /var/log/gitlab- and finally, move
/etc/gitlabunder the prefix, and start gitlab:
mv /etc/gitlab /opt/gitlab/conf
ln -s /opt/gitlab/conf /etc/gitlab
gitlab-ctl starttested against omnibus-gitlab-ce-7.14.3