You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
40 lines
1.0 KiB
#!/usr/bin/with-contenv bash
|
|
|
|
|
|
if [ -f /config/scripts/video-pp.bash ]; then
|
|
rm /config/scripts/video-pp.bash
|
|
fi
|
|
|
|
if [ ! -f /config/scripts/video-pp.bash ]; then
|
|
cp /scripts/video-pp.bash /config/scripts/video-pp.bash
|
|
chmod 777 /config/scripts/video-pp.bash
|
|
chown abc:abc /config/scripts/video-pp.bash
|
|
fi
|
|
|
|
|
|
if [ -f /config/scripts/audio-pp.bash ]; then
|
|
rm /config/scripts/audio-pp.bash
|
|
fi
|
|
|
|
if [ ! -f /config/scripts/audio-pp.bash ]; then
|
|
cp /scripts/audio-pp.bash /config/scripts/audio-pp.bash
|
|
chmod 777 /config/scripts/audio-pp.bash
|
|
chown abc:abc /config/scripts/audio-pp.bash
|
|
fi
|
|
|
|
if [ ! -f /config/scripts/configs/beets-config.yaml ]; then
|
|
cp /scripts/beets-config.yaml /config/scripts/configs/beets-config.yaml
|
|
chmod 777 /config/scripts/configs/beets-config.yaml
|
|
chown abc:abc /config/scripts/configs/beets-config.yaml
|
|
fi
|
|
|
|
if [ -f /config/scripts/logs/audio-pp.log ]; then
|
|
rm /config/scripts/logs/audio-pp.log
|
|
fi
|
|
|
|
if [ -f /config/scripts/logs/video-pp.log ]; then
|
|
rm /config/scripts/logs/video-pp.log
|
|
fi
|
|
|
|
exit $?
|