From 21ebd136e67d4a8019ec664eb95373e858f425ca Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 8 Sep 2020 06:45:30 -0400 Subject: [PATCH] Create 33-script-setup.bash --- root/etc/cont-init.d/33-script-setup.bash | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 root/etc/cont-init.d/33-script-setup.bash diff --git a/root/etc/cont-init.d/33-script-setup.bash b/root/etc/cont-init.d/33-script-setup.bash new file mode 100644 index 0000000..d8d691a --- /dev/null +++ b/root/etc/cont-init.d/33-script-setup.bash @@ -0,0 +1,25 @@ +#!/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 + +exit $?