1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

nixos/gitlab: don't delete ${statePath}/lib if it doesn't exist

The old behaviour caused new instances to be unable to start
This commit is contained in:
Teo Klestrup Röijezon 2018-06-05 21:22:41 +02:00 committed by Robin Gloster
parent a52b6b1932
commit 3250b89987

View file

@ -584,7 +584,9 @@ in {
ln -sf ${smtpSettings} ${cfg.statePath}/config/initializers/smtp_settings.rb
''}
ln -sf ${cfg.statePath}/config /run/gitlab/config
rm ${cfg.statePath}/lib
if [ -e ${cfg.statePath}/lib ]; then
rm ${cfg.statePath}/lib
fi
ln -sf ${pkgs.gitlab}/share/gitlab/lib ${cfg.statePath}/lib
cp ${cfg.packages.gitlab}/share/gitlab/VERSION ${cfg.statePath}/VERSION