blob: 6d206a2bd500f82b60239c5baf314f9c05975a4b (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
post_install() {
mkdir -p /var/lib/duplicati
chown -R duplicati:duplicati /var/lib/duplicati
cat <<EOF
* UI can be accessed via following URL: http://localhost:8200
* Running duplicati user instance (using current user account)
- to start duplicati manually: systemctl --user start duplicati
- to autostart duplicati on user login: systemctl --user enable duplicati
*
* To run Duplicati.Server.exe as root, simply use systemd's "drop-in" feature
* and specify
* User=root
* Group=root
EOF
}
post_upgrade() {
mkdir -p /var/lib/duplicati
chown -R duplicati:duplicati /var/lib/duplicati
if [ $(vercmp $2 2.0.2.10-1) -lt 0 ]; then
cat <<EOF
* In versions prior to 2.0.2.10-1, the system version of duplicati.service
* started Duplicati.Server.exe as root. It now runs as user duplicati.
* Please move your old duplicati database from
* /root/.config/Duplicati
* to
* /var/lib/duplicati/.config/Duplicati
* To run Duplicati.Server.exe as root, simply use systemd's "drop-in" feature
* and specify
* User=root
* Group=root
EOF
fi
if [ $(vercmp $2 2.0.5.113-1) -lt 0 ]; then
cat <<EOF
* In versions 2.0.5.113 and above, the Telegram backend has been removed, and
* the SSH backend has increased its encryption algorithm requirements, which may
* break backups. See https://github.com/duplicati/duplicati/releases/tag/v2.0.5.113-2.0.5.113_canary_2021-03-07
* for details, and downgrade to an earlier version if necessary.
EOF
fi
if [ $(vercmp $2 2.0.6.104-5) -lt 0 ]; then
cat <<EOF
* This package was renamed from duplicati-latest to duplicati-canary-bin starting
* from 2.0.6.104-5. The install path was also changed from /opt/duplicati-latest to
* /opt/duplicati, so please update any scripts that referred to the installation
* directory directly.
EOF
fi
if [ $(vercmp $2 2.0.9.101-1) -lt 0 ]; then
cat <<EOF
* Version 2.0.9.101-1 was a major overhaul of the code organization, and now includes
* a vendored .NET runtime. The name of the binaries also changed.
* Please report any issues on the AUR.
* https://aur.archlinux.org/packages/duplicati-canary-bin
EOF
fi
if [ $(vercmp $2 2.0.9.102-1) -lt 0 ]; then
cat <<EOF
* Version 2.0.9.102 changes the webserver, and now requires authentication to use
* the default http://localhost:8200. The TrayIcon service will authenticate for you,
* but see https://github.com/duplicati/duplicati/releases/tag/v2.0.9.102_canary_2024-08-02
* for more details.
EOF
fi
cat <<EOF
* UI can be accessed via following URL: http://localhost:8200
* Running duplicati user instance (using current user account)
- to reload user systemd modules: systemctl --user daemon-reload
- to start duplicati manually: systemctl --user start duplicati
- to autostart duplicati on user login: systemctl --user enable duplicati
EOF
}
|