PKGBUILDs/aur/couchpotato-git/couchpotato.install

19 lines
706 B
Plaintext
Raw Normal View History

2011-02-28 03:00:10 +00:00
## arg 1: the new package version
post_install() {
groupadd couchpotato &> /dev/null
useradd -g couchpotato -d /opt/couchpotato -s /bin/false couchpotato &> /dev/null
chown -R couchpotato:couchpotato /opt/couchpotato
2012-10-13 22:26:49 +00:00
echo " >> If you change CouchPotato's port in the general configuration page, you will need to edit /etc/conf.d/couchpotato (or /etc/conf.d/couchpotato_systemd) to have it point to the new port number"
2011-02-28 03:00:10 +00:00
}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
chown -R couchpotato:couchpotato /opt/couchpotato
}
## arg 1: the old package version
2012-10-13 22:26:49 +00:00
post_remove() {
2011-02-28 03:00:10 +00:00
userdel couchpotato &> /dev/null
2012-10-13 22:26:49 +00:00
groupdel sabnzbd &> /dev/null || /bin/true
2011-02-28 03:00:10 +00:00
}