Navidrome: Apply Shellcheck

This commit is contained in:
Benoit 2024-10-24 19:12:33 +09:00
parent 8bef7dc917
commit ea2f41dd77
Signed by: Benoit
SSH key fingerprint: SHA256:kFsX94Kq6z/6CY0dX+7/FpAeJC0QlMhJVY+B7NYrOmA

View file

@ -14,27 +14,27 @@ SERIAL="1benoitjpnet"
CNAME="$UPSTREAM_NAME-$UPSTREAM_VER_DASH-$SERIAL-$DIST-$VER" CNAME="$UPSTREAM_NAME-$UPSTREAM_VER_DASH-$SERIAL-$DIST-$VER"
ALIAS="$UPSTREAM_NAME-$UPSTREAM_VER-$SERIAL" ALIAS="$UPSTREAM_NAME-$UPSTREAM_VER-$SERIAL"
cd $WORKSPACE cd "$WORKSPACE"
incus launch images:$IMAGE $CNAME --quiet incus launch images:$IMAGE "$CNAME" --quiet
wait_network $CNAME wait_network "$CNAME"
# Navidrome # Navidrome
incus exec $CNAME -- apt update incus exec "$CNAME" -- bash -c "apt update && \
incus exec $CNAME -- apt upgrade -y apt upgrade -y && \
incus exec $CNAME -- apt install -y --no-install-recommends ffmpeg wget apt install -y --no-install-recommends ffmpeg wget && \
incus exec $CNAME -- useradd -m -s /sbin/nologin -d /var/lib/navidrome navidrome useradd -m -s /sbin/nologin -d /var/lib/navidrome navidrome && \
incus exec $CNAME -- install -d -o navidrome -g navidrome /opt/navidrome install -d -o navidrome -g navidrome /opt/navidrome && \
incus exec $CNAME -- wget -q \ wget -q https://github.com/navidrome/navidrome/releases/download/v${UPSTREAM_VER}/navidrome_${UPSTREAM_VER}_linux_amd64.tar.gz \
"https://github.com/navidrome/navidrome/releases/download/v${UPSTREAM_VER}/navidrome_${UPSTREAM_VER}_linux_amd64.tar.gz" \ -O /tmp/Navidrome.tar.gz && \
-O /tmp/Navidrome.tar.gz tar -xvzf /tmp/Navidrome.tar.gz -C /opt/navidrome/ && \
incus exec $CNAME -- tar -xvzf /tmp/Navidrome.tar.gz -C /opt/navidrome/ chown -R navidrome:navidrome /opt/navidrome
incus exec $CNAME -- chown -R navidrome:navidrome /opt/navidrome "
# Syncthing # Syncthing
incus exec $CNAME -- apt install -y --no-install-recommends syncthing incus exec "$CNAME" -- apt install -y --no-install-recommends syncthing
incus exec $CNAME -- cp /lib/systemd/system/syncthing\@.service /etc/systemd/system/ incus exec "$CNAME" -- cp /lib/systemd/system/syncthing\@.service /etc/systemd/system/
incus exec $CNAME -- sed -i \ 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/' \ '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 /etc/systemd/system/syncthing\@.service