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
7 useradd -r -d /var/lib/swarmtv -U -s /bin/bash swarmtv
10 ## arg 1: the new package version
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
25 ## arg 1: the new package version
26 ## arg 2: the old package version
31 ## arg 1: the old package version
36 ## arg 1: the old package version
38 echo "==> Deleting the swarmtv user"
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: