nixos/gitlab: Remove the old lib symlink in the state directory

Also, remove the old and unused PermissionsStartOnly definition in the
gitlab-workhorse systemd service.
This commit is contained in:
talyz 2019-10-27 12:37:10 +01:00 committed by Emery Hemingway
parent 041cbd860d
commit d5db11ccbd

View File

@ -741,7 +741,6 @@ in {
gitlab-workhorse
];
serviceConfig = {
PermissionsStartOnly = true; # preStart must be run as root
Type = "simple";
User = cfg.user;
Group = cfg.group;
@ -794,6 +793,7 @@ in {
cp -f ${cfg.packages.gitlab}/share/gitlab/VERSION ${cfg.statePath}/VERSION
rm -rf ${cfg.statePath}/db/*
rm -rf ${cfg.statePath}/config/initializers/*
rm -f ${cfg.statePath}/lib
cp -rf --no-preserve=mode ${cfg.packages.gitlab}/share/gitlab/config.dist/* ${cfg.statePath}/config
cp -rf --no-preserve=mode ${cfg.packages.gitlab}/share/gitlab/db/* ${cfg.statePath}/db