void-packages/srcpkgs/PopCorn/files/popcorn/run
2018-05-08 18:41:11 -07:00

8 lines
242 B
Bash
Executable file

#!/bin/sh
[ -r ./conf ] && . ./conf
mkdir -p /etc/popcorn
chown -R _popcorn:_popcorn /etc/popcorn
chpst -u _popcorn:_popcorn popcorn --server $SERVER --port $PORT
exec chpst -u _popcorn:_popcorn snooze popcorn --server $SERVER --port $PORT