10 lines
480 B
Bash
10 lines
480 B
Bash
|
#!/usr/local/bin/bash
|
||
|
# This file contains the update script for radarr
|
||
|
|
||
|
iocage exec "$1" service radarr stop
|
||
|
#TODO insert code to update radarr itself here
|
||
|
iocage exec "$1" chown -R radarr:radarr /usr/local/share/Radarr /config
|
||
|
# shellcheck disable=SC2154
|
||
|
cp "${SCRIPT_DIR}"/blueprints/radarr/includes/radarr.rc /mnt/"${global_dataset_iocage}"/jails/"$1"/root/usr/local/etc/rc.d/radarr
|
||
|
iocage exec "$1" chmod u+x /usr/local/etc/rc.d/radarr
|
||
|
iocage exec "$1" service radarr restart
|