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
2023-07-26 16:34:38 +02:00

15 lines
488 B
Bash

#! /bin/sh
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
rclone mount --read-only --vfs-cache-mode full audio: /content/audio &
rclone mount --read-only --vfs-cache-mode full radio: /content/radio &
gerbera &
wait -n
exit $?