summarylogtreecommitdiffstats
path: root/pymedusa.install
blob: 35c0979212ef13aaadb651382940ce12b0307ea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_upgrade() {
  echo "*****************************************************************"
  echo "==> To migrate data from versions prior to 0.3.0:"
  echo "    systemctl stop pymedusa"
  echo "    rm -rf /var/lib/pymedusa/*"
  echo "    cp -a --sparse=always /opt/pymedusa/data/* /var/lib/pymedusa/"
  echo "    chown -R pymedusa:pymedusa /var/lib/pymedusa/"
  echo "*****************************************************************"
}

pre_remove() {
  systemctl stop pymedusa.service
}

post_remove() {
  echo "==> To delete the configuration files, run as root: rm -rf /var/lib/pymedusa"
}