-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts_init.bash
More file actions
39 lines (32 loc) · 987 Bytes
/
scripts_init.bash
File metadata and controls
39 lines (32 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/with-contenv bash
version="1.0"
installDependencies () {
echo "Installing script dependencies...."
if apk --no-cache list | grep installed | grep mkvtoolnix | read; then
echo "Dependencies already installed, skipping..."
else
apk add -U --update --no-cache \
jq \
xq \
git \
opus-tools \
mkvtoolnix \
ffmpeg
echo "done"
fi
}
installDependencies
# Create Script Folder
if [ ! -d /config/scripts ]; then
mkdir -p /config/scripts
fi
if [ ! -f /config/scripts/settings.conf ]; then
echo "Download Settings config..."
curl "https://raw.githubusercontent.com/RandomNinjaAtk/sabnzbd-scripts/refs/heads/master/setting.conf" -o /config/scripts/settings.conf
echo "Done"
fi
echo "Downloading Video script: /config/scripts/video.bash"
curl "https://raw.githubusercontent.com/RandomNinjaAtk/sabnzbd-scripts/refs/heads/master/video.bash" -o /config/scripts/video.bash
# Set Permissions
chmod 777 -R /config/scripts
exit