mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Add .env file support for HomeBox (#383)
* added .env file support added env file support using the homebox docs * Changed homebox note from warning to info * Homebox-Install: Add .env Support * Update homebox-install.sh --------- Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com> Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
This commit is contained in:
parent
51c4d3f000
commit
0c8c0d882b
@ -26,6 +26,12 @@ msg_info "Installing Homebox"
|
|||||||
RELEASE=$(curl -s https://api.github.com/repos/sysadminsmedia/homebox/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -s https://api.github.com/repos/sysadminsmedia/homebox/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
wget -qO- https://github.com/sysadminsmedia/homebox/releases/download/${RELEASE}/homebox_Linux_x86_64.tar.gz | tar -xzf - -C /opt
|
wget -qO- https://github.com/sysadminsmedia/homebox/releases/download/${RELEASE}/homebox_Linux_x86_64.tar.gz | tar -xzf - -C /opt
|
||||||
chmod +x /opt/homebox
|
chmod +x /opt/homebox
|
||||||
|
cat <<EOF >/opt/.env
|
||||||
|
# For possible environment variables check here: https://homebox.software/en/configure-homebox
|
||||||
|
HBOX_MODE=production
|
||||||
|
HBOX_WEB_PORT=7745
|
||||||
|
HBOX_WEB_HOST=0.0.0.0
|
||||||
|
EOF
|
||||||
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
|
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
|
||||||
msg_ok "Installed Homebox"
|
msg_ok "Installed Homebox"
|
||||||
|
|
||||||
@ -38,6 +44,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/opt
|
WorkingDirectory=/opt
|
||||||
ExecStart=/opt/homebox
|
ExecStart=/opt/homebox
|
||||||
|
EnvironmentFile=/opt/.env
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
@ -30,5 +30,10 @@
|
|||||||
"username": null,
|
"username": null,
|
||||||
"password": null
|
"password": null
|
||||||
},
|
},
|
||||||
"notes": []
|
"notes": [
|
||||||
}
|
{
|
||||||
|
"text": "env file location: `/opt/.env`",
|
||||||
|
"type": "info"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user