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
|
echo "${RELEASE}" >/opt/bitmagnet_version.txt
|
||||||
msg_ok "Installed bitmagnet v${RELEASE}"
|
msg_ok "Installed bitmagnet v${RELEASE}"
|
||||||
|
|
||||||
|
read -p -r "Enter your TMDB API key if you have one: " tmdbapikey
|
||||||
|
|
||||||
msg_info "Enabling bitmagnet Service"
|
msg_info "Enabling bitmagnet Service"
|
||||||
cat <<EOF >/etc/init.d/bitmagnet
|
cat <<EOF >/etc/init.d/bitmagnet
|
||||||
#!/sbin/openrc-run
|
#!/sbin/openrc-run
|
||||||
@ -58,6 +60,8 @@ command_background="true"
|
|||||||
command_user="root"
|
command_user="root"
|
||||||
pidfile="/var/run/bitmagnet.pid"
|
pidfile="/var/run/bitmagnet.pid"
|
||||||
|
|
||||||
|
export TMDB_API_KEY=$tmdbapikey
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
use net
|
use net
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user