mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
17 lines
621 B
Text
17 lines
621 B
Text
## 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
|
|
echo " >> If you change CouchPotato's port in the general configuration page, you will need to edit /etc/rc.d/couchpotato to have it point to the new port number"
|
|
}
|
|
## 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
|
|
pre_remove() {
|
|
userdel couchpotato &> /dev/null
|
|
}
|