Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
nixos/gitlab: Remove the old lib symlink in the state directory
Browse files Browse the repository at this point in the history
Also, remove the old and unused PermissionsStartOnly definition in the
gitlab-workhorse systemd service.
  • Loading branch information
talyz authored and ehmry committed Oct 28, 2019
1 parent 041cbd8 commit d5db11c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/gitlab.nix
Expand Up @@ -741,7 +741,6 @@ in {
gitlab-workhorse
];
serviceConfig = {
PermissionsStartOnly = true; # preStart must be run as root
Type = "simple";
User = cfg.user;
Group = cfg.group;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d5db11c

Please sign in to comment.