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.
commitd5db11ccbd6dce1d04835a17ef46098137c0b77e
authortalyz <kim.lindberger@gmail.com>
dateSun 27 Oct 2019, 12:37 (7 years ago)
parent041cbd8
nixos/modules/services/misc/gitlab.nix+1−1
@@ -741,7 +741,6 @@ in {
741741 gitlab-workhorse
742742 ];
743743 serviceConfig = {
744− PermissionsStartOnly = true; # preStart must be run as root
745744 Type = "simple";
746745 User = cfg.user;
747746 Group = cfg.group;
@@ -794,6 +793,7 @@ in {
794793 cp -f ${cfg.packages.gitlab}/share/gitlab/VERSION ${cfg.statePath}/VERSION
795794 rm -rf ${cfg.statePath}/db/*
796795 rm -rf ${cfg.statePath}/config/initializers/*
796+ rm -f ${cfg.statePath}/lib
797797 cp -rf --no-preserve=mode ${cfg.packages.gitlab}/share/gitlab/config.dist/* ${cfg.statePath}/config
798798 cp -rf --no-preserve=mode ${cfg.packages.gitlab}/share/gitlab/db/* ${cfg.statePath}/db
799799