Add handling of TMDB API keys
This commit is contained in:
parent
48d1e7ecf6
commit
fcbc27ecd8
@ -47,6 +47,8 @@ $STD su - postgres -c "psql -c 'CREATE DATABASE bitmagnet;'"
|
||||
echo "${RELEASE}" >/opt/bitmagnet_version.txt
|
||||
msg_ok "Installed bitmagnet v${RELEASE}"
|
||||
|
||||
read -p -r "Enter your TMDB API key if you have one: " tmdbapikey
|
||||
|
||||
msg_info "Enabling bitmagnet Service"
|
||||
cat <<EOF >/etc/init.d/bitmagnet
|
||||
#!/sbin/openrc-run
|
||||
@ -58,6 +60,8 @@ command_background="true"
|
||||
command_user="root"
|
||||
pidfile="/var/run/bitmagnet.pid"
|
||||
|
||||
export TMDB_API_KEY=$tmdbapikey
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user