summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Webster2020-07-01 21:31:12 -0700
committerDonald Webster2020-07-01 21:31:12 -0700
commit668f6247308bbb07ac5549093dbe03570ed5fa61 (patch)
tree26edb1933fdac18f5c60387e9cf2022e46735d0c
parent548be899dd05d1b98bd6f740d8d5c9f9f3ed4cf5 (diff)
downloadaur-668f6247308bbb07ac5549093dbe03570ed5fa61.tar.gz
Gate warning on existance of old folder.
-rw-r--r--tautulli.install10
1 files changed, 6 insertions, 4 deletions
diff --git a/tautulli.install b/tautulli.install
index 57f9b33b64a..ed96f944e9e 100644
--- a/tautulli.install
+++ b/tautulli.install
@@ -1,6 +1,8 @@
post_install() {
- echo "To migrate your plexpy config and db, run the following commands:"
- echo " sudo mv /var/lib/plexpy/* /var/lib/tautulli/"
- echo " sudo sed 's#\/var\/lib\/plexpy#\/var\/lib\/tautulli#g' -i /var/lib/tautulli/config.ini"
- echo " sudo chown -R tautulli: /var/lib/tautulli"
+ if [[ -d /var/lib/plexpy ]]; then
+ echo "To migrate your plexpy config and db, run the following commands:"
+ echo " sudo mv /var/lib/plexpy/* /var/lib/tautulli/"
+ echo " sudo sed 's#\/var\/lib\/plexpy#\/var\/lib\/tautulli#g' -i /var/lib/tautulli/config.ini"
+ echo " sudo chown -R tautulli: /var/lib/tautulli"
+ fi
}