Stop jackett before modifying users home dir, tell user about it.
This commit is contained in:
parent
843b5ceffe
commit
779c82ab0d
1 changed files with 5 additions and 1 deletions
|
@ -17,13 +17,17 @@ post_upgrade() {
|
|||
cp -a /usr/share/Jackett/.config/.mono /var/lib/jackett/
|
||||
fi
|
||||
|
||||
# The jackett user's home directory needs to change too.
|
||||
# Stop jackett so user's home directory can be changed.
|
||||
systemctl stop jackett
|
||||
if [[ "$( getent passwd jackett | cut -d: -f6 )" != "/var/lib/jackett" ]]; then
|
||||
usermod -d /var/lib/jackett jackett
|
||||
fi
|
||||
|
||||
echo "Configs copied from /usr/share/Jackett/.config/Jackett -> /var/lib/jackett/."
|
||||
echo "After confirming, rm -rf /opt/Jackett /usr/share/Jackett."
|
||||
echo
|
||||
echo "To modify jackett user's home directory, the jackett service was stopped."
|
||||
echo "Start it again by running: sudo systemctl start jackett"
|
||||
fi
|
||||
|
||||
post_install "$1"
|
||||
|
|
Loading…
Reference in a new issue