proxmox: pull the docker compose script from repo

This commit is contained in:
Koushik Dutta
2024-10-03 13:45:25 -07:00
parent e21facb123
commit 337a74a170
2 changed files with 15 additions and 16 deletions

View File

@@ -117,6 +117,10 @@ then
else
export DOCKER_COMPOSE_SH=$SCRYPTED_HOME/docker-compose.sh
curl https://raw.githubusercontent.com/koush/scrypted/main/install/proxmox/docker-compose.sh > $DOCKER_COMPOSE_SH
chmod +x $DOCKER_COMPOSE_SH
cat > /etc/systemd/system/scrypted.service <<EOT
[Unit]
Description=Scrypted service
@@ -136,22 +140,6 @@ StandardError=null
WantedBy=multi-user.target
EOT
cat > $DOCKER_COMPOSE_SH <<EOT
#!/bin/bash
cd $SCRYPTED_HOME
# always immediately upgrade everything in case there's a broken update.
# this will also be preferable for troubleshooting via lxc reboot.
export DEBIAN_FRONTEND=noninteractive
(apt -y --fix-broken install && dpkg --configure -a && apt -y update && apt -y dist-upgrade) &
docker compose pull &
# do not daemonize, when it exits, systemd will restart it.
docker compose up
EOT
chmod +x $DOCKER_COMPOSE_SH
systemctl daemon-reload
systemctl enable scrypted.service
systemctl restart scrypted.service

View File

@@ -1,4 +1,15 @@
#!/bin/bash
cat /etc/issue <<EOT
Welcome to Scrypted!
To access the Scrypted Management Console visit:
https://scrypted:10443
or
https://192.168.2.181:10443
EOT
cd /root/.scrypted
# always immediately upgrade everything in case there's a broken update.