mirror of
https://github.com/koush/scrypted.git
synced 2026-06-11 13:20:30 +01:00
proxmox: pull the docker compose script from repo
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user