updated on Tue Jan 17 08:05:08 UTC 2012
[aur-mirror.git] / swarmtv / swarmtv.install
blobb18cc57f7e17db6932b1cef693dc8787af4dfcd8
1 # This is a default template for a post-install scriptlet.
2 # Uncomment only required functions and remove any functions
3 # you don't need (and this header).
5 ## arg 1:  the new package version
6 pre_install() {
7   useradd -r -d /var/lib/swarmtv -U -s /bin/bash swarmtv
10 ## arg 1:  the new package version
11 post_install() {
12   touch /var/lib/swarmtv/swarm.db
13   touch /var/log/swarmtv.log
14   chown -R swarmtv.swarmtv /var/lib/swarmtv/
15   chown swarmtv.swarmtv /var/log/swarmtv.log
16   su swarmtv -c '/usr/bin/swarmtv -C logfile:/var/log/swarmtv.log'
19 ## arg 1:  the new package version
20 ## arg 2:  the old package version
21 #pre_upgrade() {
22   # do something here
25 ## arg 1:  the new package version
26 ## arg 2:  the old package version
27 #post_upgrade() {
28   # do something here
31 ## arg 1:  the old package version
32 #pre_remove() {
33   # do something here
36 ## arg 1:  the old package version
37 post_remove() {
38   echo "==> Deleting the swarmtv user"
39   userdel swarmtv
40   echo "==> The database is still in /var/lib/swarmtv and the log file in /var/log/swarmtv.log"
43 # vim:set ts=2 sw=2 et: