Compare commits
No commits in common. "dc8a80cea4f5fd67c63a6e03bed658aabfbf321d" and "537481a849c78f2f1198b79149d062396c762762" have entirely different histories.
dc8a80cea4
...
537481a849
4 changed files with 9 additions and 14 deletions
|
@ -17,7 +17,8 @@ ALIAS="$UPSTREAM_NAME-$UPSTREAM_VER-$SERIAL"
|
|||
cd $WORKSPACE
|
||||
incus launch images:$IMAGE $CNAME --quiet
|
||||
|
||||
wait_network $CNAME
|
||||
# Wait for network
|
||||
timeout 30 bash -c "until incus exec $CNAME -- ping -c1 google.com &>/dev/null; do sleep 1; done"
|
||||
|
||||
# Forgejo
|
||||
incus exec $CNAME -- mkdir /etc/esh
|
||||
|
|
|
@ -17,7 +17,8 @@ ALIAS="$UPSTREAM_NAME-$UPSTREAM_VER-$SERIAL"
|
|||
cd "$WORKSPACE"
|
||||
incus launch images:$IMAGE "$CNAME" --quiet
|
||||
|
||||
wait_network $CNAME
|
||||
# Wait for network
|
||||
timeout 30 bash -c "until incus exec $CNAME -- ping -c1 google.com &>/dev/null; do sleep 1; done"
|
||||
|
||||
# Mastodon
|
||||
incus exec "$CNAME" -- bash -c '
|
||||
|
|
|
@ -17,7 +17,8 @@ ALIAS="$UPSTREAM_NAME-$UPSTREAM_VER-$SERIAL"
|
|||
cd $WORKSPACE
|
||||
incus launch images:$IMAGE $CNAME --quiet
|
||||
|
||||
wait_network $CNAME
|
||||
# Wait network
|
||||
sleep 5
|
||||
|
||||
# Navidrome
|
||||
incus exec $CNAME -- mkdir /etc/esh
|
||||
|
@ -26,11 +27,11 @@ incus exec $CNAME -- apt upgrade -y
|
|||
incus exec $CNAME -- apt install -y --no-install-recommends ffmpeg wget
|
||||
incus exec $CNAME -- useradd -m -s /sbin/nologin -d /var/lib/navidrome navidrome
|
||||
incus exec $CNAME -- install -d -o navidrome -g navidrome /opt/navidrome
|
||||
incus exec $CNAME -- wget -q \
|
||||
"https://github.com/navidrome/navidrome/releases/download/v${UPSTREAM_VER}/navidrome_${UPSTREAM_VER}_linux_amd64.tar.gz" \
|
||||
-O /tmp/Navidrome.tar.gz
|
||||
incus exec $CNAME -- wget "https://github.com/navidrome/navidrome/releases/download/v${UPSTREAM_VER}/navidrome_${UPSTREAM_VER}_linux_amd64.tar.gz" -O /tmp/Navidrome.tar.gz
|
||||
incus exec $CNAME -- tar -xvzf /tmp/Navidrome.tar.gz -C /opt/navidrome/
|
||||
incus exec $CNAME -- chown -R navidrome:navidrome /opt/navidrome
|
||||
incus file push navidrome.toml $CNAME/etc/esh/
|
||||
incus file push setup.sh $CNAME/usr/local/bin/
|
||||
incus file push navidrome.service $CNAME/etc/systemd/system/
|
||||
|
||||
# Syncthing
|
||||
|
@ -40,8 +41,6 @@ incus exec $CNAME -- sed -i \
|
|||
's/\(ExecStart=\/usr\/bin\/syncthing serve --no-browser --no-restart --logflags=0\)/\1 --gui-address=0.0.0.0:8384/' \
|
||||
/etc/systemd/system/syncthing\@.service
|
||||
|
||||
# Next manual steps https://www.navidrome.org/docs/installation/linux/#create-configuration-file
|
||||
|
||||
# Clean
|
||||
incus exec $CNAME -- \
|
||||
rm -rf \
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/env bash
|
||||
# Upstream doc: https://www.navidrome.org/docs/installation/linux/
|
||||
set -euxo pipefail
|
||||
|
||||
CNAME="$1"
|
||||
timeout 30 bash -c "until incus exec $CNAME -- ping -c1 google.com &>/dev/null; do sleep 1; done"
|
Loading…
Add table
Reference in a new issue