This repository has been archived on 2024-08-06. You can view files and clone it, but cannot push or open issues or pull requests.
dlnextcloud/bin/wrapper.sh

16 lines
488 B
Bash
Raw Normal View History

2023-07-26 16:34:38 +02:00
#! /bin/sh
2023-07-15 16:47:32 +02:00
2023-07-26 16:34:38 +02:00
sed -i "s|NC_PASSWORD|$NC_PASSWORD|g" /root/.config/rclone/rclone.conf
sed -i "s|NC_MUSIC_DIR_URL|$NC_MUSIC_DIR_URL|g" /root/.config/rclone/rclone.conf
sed -i "s|NC_RADIO_DIR_URL|$NC_RADIO_DIR_URL|g" /root/.config/rclone/rclone.conf
sed -i "s|NC_USERNAME|$NC_USERNAME|g" /root/.config/rclone/rclone.conf
2023-07-15 16:47:32 +02:00
2023-07-26 16:34:38 +02:00
rclone mount --read-only --vfs-cache-mode full audio: /content/audio &
rclone mount --read-only --vfs-cache-mode full radio: /content/radio &
gerbera &
2023-07-15 16:47:32 +02:00
wait -n
exit $?