This repository has been archived by the owner on Oct 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
startup.sh
57 lines (49 loc) · 1.87 KB
/
startup.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
48
49
50
51
52
53
54
55
56
57
# Copyright (C) 2020-2021 by DevsExpo@Github, < https://github.com/DevsExpo >.
#
# This file is part of < https://github.com/DevsExpo/FridayUB > project,
# and is released under the "GNU v3.0 License Agreement".
# Please see < https://github.com/DevsExpo/blob/master/LICENSE >
#
# All rights reserved.
nowtime=$(date)
echo "
FridayUB
(C) @FridayOT
Powered By @DevsExpo.
Time : $nowtime
"
update_and_install_packages () {
apt -qq update -y
apt -qq install -y --no-install-recommends \
git \
ffmpeg \
mediainfo \
unzip \
wget \
gifsicle
}
# Thanks To Userge For The Chrome Version Hecks
install_helper_packages () {
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && apt -fqqy install ./google-chrome-stable_current_amd64.deb && rm google-chrome-stable_current_amd64.deb
wget https://chromedriver.storage.googleapis.com/$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && unzip chromedriver_linux64.zip && chmod +x chromedriver && mv -f chromedriver /usr/bin/ && rm chromedriver_linux64.zip
wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip && unzip opencv.zip && mv -f opencv-master /usr/bin/ && rm opencv.zip
wget https://people.eecs.berkeley.edu/~rich.zhang/projects/2016_colorization/files/demo_v2/colorization_release_v2.caffemodel -P ./bot_utils_files/ai_helpers/
}
ech_final () {
echo "
=+---------------------------------------------------------+=
Deployment Sucessfull.
Docker Images Are Being Pushed, Please Wait.
Thank You For Installing FridayUB.
(C) @DevsExpo
=+---------------------------------------------------------+=
"
}
_run_all () {
update_and_install_packages
install_helper_packages
pip3 install –upgrade pip
pip3 install --no-cache-dir -r requirements.txt
ech_final
}
_run_all