mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-31 04:50:14 +00:00
Apply suggestions from code review
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
This commit is contained in:
parent
70d13d21a7
commit
218bbae50e
@ -98,11 +98,8 @@ DATA_DIR="/opt/hoarder_data"
|
|||||||
MEILI_ADDR="http://127.0.0.1:7700"
|
MEILI_ADDR="http://127.0.0.1:7700"
|
||||||
MEILI_MASTER_KEY="$MASTER_KEY"
|
MEILI_MASTER_KEY="$MASTER_KEY"
|
||||||
BROWSER_WEB_URL="http://127.0.0.1:9222"
|
BROWSER_WEB_URL="http://127.0.0.1:9222"
|
||||||
#CRAWLER_FULL_PAGE_SCREENSHOT=true
|
|
||||||
#CRAWLER_FULL_PAGE_ARCHIVE=true
|
|
||||||
#CRAWLER_VIDEO_DOWNLOAD=true
|
|
||||||
EOF
|
EOF
|
||||||
echo "${RELEASE}" >"/opt/Hoarder_version.txt"
|
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
|
||||||
msg_ok "Installed Hoarder"
|
msg_ok "Installed Hoarder"
|
||||||
|
|
||||||
msg_info "Running Database Migration"
|
msg_info "Running Database Migration"
|
||||||
@ -111,8 +108,7 @@ $STD pnpm migrate
|
|||||||
mv db.db /opt/hoarder_data
|
mv db.db /opt/hoarder_data
|
||||||
msg_ok "Database Migration Completed"
|
msg_ok "Database Migration Completed"
|
||||||
|
|
||||||
msg_info "Setting up Services"
|
msg_info "Creating Services"
|
||||||
# Meilisearch Service
|
|
||||||
cat <<EOF >/etc/systemd/system/meilisearch.service
|
cat <<EOF >/etc/systemd/system/meilisearch.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Meilisearch
|
Description=Meilisearch
|
||||||
@ -126,7 +122,6 @@ Restart=always
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Hoarder Web Service
|
|
||||||
cat <<EOF >/etc/systemd/system/hoarder-web.service
|
cat <<EOF >/etc/systemd/system/hoarder-web.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Hoarder Web
|
Description=Hoarder Web
|
||||||
@ -143,7 +138,6 @@ Restart=always
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Hoarder Browser Service
|
|
||||||
cat <<EOF >/etc/systemd/system/hoarder-browser.service
|
cat <<EOF >/etc/systemd/system/hoarder-browser.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Hoarder Headless Browser
|
Description=Hoarder Headless Browser
|
||||||
@ -158,7 +152,6 @@ Restart=always
|
|||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Hoarder Workers Service
|
|
||||||
cat <<EOF >/etc/systemd/system/hoarder-workers.service
|
cat <<EOF >/etc/systemd/system/hoarder-workers.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Hoarder Workers
|
Description=Hoarder Workers
|
||||||
@ -177,7 +170,7 @@ WantedBy=multi-user.target
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl -q enable --now meilisearch.service hoarder-web.service hoarder-browser.service hoarder-workers.service
|
systemctl -q enable --now meilisearch.service hoarder-web.service hoarder-browser.service hoarder-workers.service
|
||||||
msg_ok "Set up Services"
|
msg_ok "Created Services"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
Loading…
Reference in New Issue
Block a user