8 lines
242 B
Bash
Executable file
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
|