summarylogtreecommitdiffstats
path: root/duplicati.install
blob: ce4223a188307c8e1921455e327e4bd19ecb82b3 (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
post_install() {
  post_upgrade
}

post_upgrade() {
  systemd-sysusers duplicati.conf
  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
  
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
}