git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/gitlab: don't delete ${statePath}/lib if it doesn't exist

The old behaviour caused new instances to be unable to start

commit3250b89987c4920c0c48381023ce5465b484aaed authorTeo Klestrup Röijezon <teo@nullable.se> dateTue 5 Jun 2018, 21:22 (8 years ago) parenta52b6b1
1 file changed+3−1
nixos/modules/services/misc/gitlab.nix+3−1
nixos/modules/services/misc/gitlab.nix+3−1
@@ -584,7 +584,9 @@ in {
584584 ln -sf ${smtpSettings} ${cfg.statePath}/config/initializers/smtp_settings.rb
585585 ''}
586586 ln -sf ${cfg.statePath}/config /run/gitlab/config
587− rm ${cfg.statePath}/lib
587+ if [ -e ${cfg.statePath}/lib ]; then
588+ rm ${cfg.statePath}/lib
589+ fi
588590 ln -sf ${pkgs.gitlab}/share/gitlab/lib ${cfg.statePath}/lib
589591 cp ${cfg.packages.gitlab}/share/gitlab/VERSION ${cfg.statePath}/VERSION
590592