summaryrefslogtreecommitdiff
path: root/pcr/guix/guix.install
blob: abca2dc18322fad2fa3b300171ff7973e5d67106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
post_upgrade() {
  if [ "$(vercmp "$2" "0.8.3-2")" -lt "0" ]; then
    echo "(NOTES FOR UPGRADING FROM VERSIONS BEFORE 0.8.3-2)"
    echo
    echo "The systemd service file used to run guix-daemon is renamed from"
    echo "guix.service to guix-daemon.service. Please use the following"
    echo "commands to keep your installation compatible with the new version."
    echo
    echo "  systemctl disable guix"
    echo "  systemctl enable guix-daemon"
    echo "  groupmod -n guixbuild guix-builder"
    echo "  usermod -l guixbuild guix-builder"
    echo
    echo "If you have /etc/systemd/system/guix.service.d, please also remember"
    echo "to review its content and rename it to guix-daemon.service.d."
    echo
  fi
  if [ "$(vercmp "$2" "0.13.0-1")" -lt "0" ]; then
    echo "(NOTES FOR UPGRADING FROM VERSIONS BEFORE 0.13.0-1)"
    echo
    echo "The systemd service file provided by upstream is no longer usable"
    echo "by default because it includes path to the guix profile of root"
    echo "user, which does not exist unless you installed guix with guix"
    echo "itself as root user before. Therefore, guix-daemon.service provided"
    echo "by upstream is renamed to guix-daemon-latest.service, and"
    echo "guix-daemon.service is generated from the upstream one by replacing"
    echo "and removing unavailable paths."
    echo
    echo "To use the systemd service file provided by upstream, run the"
    echo "following commands as root."
    echo
    echo "  systemctl disable guix-daemon"
    echo "  systemctl start guix-daemon"
    echo "  guix package -i guix"
    echo "  systemctl stop guix-daemon"
    echo "  systemctl start guix-daemon-latest"
    echo "  systemctl enable guix-daemon-latest"
    echo
    echo "Please note that only one of guix-daemon.service or"
    echo "guix-daemon-latest.service can be started or enabled since"
    echo "they use the same /var/guix directory."
    echo
  fi
}

# vim:set ts=2 sw=2 ft=sh et: