summarylogtreecommitdiffstats
path: root/sickrage-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'sickrage-git.install')
-rw-r--r--sickrage-git.install14
1 files changed, 12 insertions, 2 deletions
diff --git a/sickrage-git.install b/sickrage-git.install
index 28a129e18b8d..d1e1b2fb8290 100644
--- a/sickrage-git.install
+++ b/sickrage-git.install
@@ -1,16 +1,26 @@
+# Colored makepkg-like functions
+note() {
+ printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
+}
+all_off="$(tput sgr0)"
+bold="${all_off}$(tput bold)"
+blue="${bold}$(tput setaf 4)"
+yellow="${bold}$(tput setaf 3)"
+
post_install() {
systemd-sysusers sickrage.conf
systemd-tmpfiles --create sickrage.conf
chown -R sickrage:sickrage /opt/sickrage
- echo "==> Configuration files have moved to /opt/sickrage/data. To migrate, run the following commands as root and then reinstall:"
+ note "Configuration files have moved to /opt/sickrage/data."
+ echo " To migrate, run the following commands as root and then reinstall:"
echo " systemctl stop sickrage.service"
echo " pacman -Rn sickrage-git"
echo " cp -a /opt/sickrage{,.bak}"
echo ' rm -r $(ls -1d /opt/sickrage/* | grep -Ev "/backup.*|/cache.*|/config.ini.*|/Log.*|/.*\.db.*")'
echo " mkdir -p /opt/sickrage/data"
echo " mv /opt/sickrage/* /opt/sickrage/data/"
+ note "If an upgrade fails with \"error: failed to commit transaction (conflicting files)\", then uninstall first."
echo "==> Start and enable sickrage.service. Then visit http://localhost:8081/"
- echo "==> If an upgrade fails with \"error: failed to commit transaction (conflicting files)\", then uninstall first."
}
post_upgrade() {