-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy paththewicklowwolf-init.sh
47 lines (38 loc) · 1.3 KB
/
thewicklowwolf-init.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
echo -e "\033[1;32mTheWicklowWolf\033[0m"
echo -e "\033[1;34mBookBounty\033[0m"
echo "Initializing app..."
cat << 'EOF'
_____________________________________
.-'''''-.
.' `.
: :
: :
: _/| :
: =/_/ :
`._/ | .'
( / ,|...-'
\_/^\/||__
_/~ `""~`"` \_
__/ -'/ `-._ `\_\__
/ /-'` `\ \ \-.\
_____________________________________
Brought to you by TheWicklowWolf
_____________________________________
If you'd like to buy me a coffee:
https://buymeacoffee.com/thewicklow
EOF
PUID=${PUID:-1000}
PGID=${PGID:-1000}
echo "-----------------"
echo -e "\033[1mRunning with:\033[0m"
echo "PUID=${PUID}"
echo "PGID=${PGID}"
echo "-----------------"
# Create the required directories with the correct permissions
echo "Setting up directories.."
mkdir -p /bookbounty/downloads /bookbounty/config
chown -R ${PUID}:${PGID} /bookbounty
# Start the application with the specified user permissions
echo "Running BookBounty..."
exec su-exec ${PUID}:${PGID} gunicorn src.BookBounty:app -c gunicorn_config.py