summarylogtreecommitdiffstats
path: root/waydroid.install
blob: 574921c8f189b452abf18fec452a92a2223da85e (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
post_install() {
  echo " ● Enabling Waydroid Container..."
  systemctl enable waydroid-container.service
  post_upgrade
}

pre_upgrade() {
  echo " ● Stoping Waydroid Container..."
  systemctl stop waydroid-container.service
}

post_upgrade() {
  echo " ● Starting Waydroid Container..."
  systemctl daemon-reload
  systemctl start waydroid-container.service
}

pre_remove() {
  pre_upgrade
  echo " ● Disabling Waydroid Container..."
  systemctl disable waydroid-container.service
}

post_remove() {
  echo " ● Optionally remove Waydroid images and data:"
  echo "    sudo rm -rf /var/lib/waydroid/ ~/.local/share/{waydroid,applications/{W,w}aydroid*.desktop}"
}