mirror of https://github.com/tteck/Proxmox.git
Replaced with concise code from tteck
This commit is contained in:
parent
b1c25b5341
commit
cb5f031635
|
@ -5,30 +5,20 @@
|
||||||
# License: MIT
|
# License: MIT
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
||||||
|
|
||||||
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y curl
|
$STD apt-get install -y curl
|
||||||
$STD apt-get install -y sudo
|
$STD apt-get install -y sudo
|
||||||
|
$STD apt-get install -y mc
|
||||||
$STD apt-get install -y unzip
|
$STD apt-get install -y unzip
|
||||||
$STD apt-get install -y python3-pip
|
$STD apt-get install -y python3-pip
|
||||||
$STD apt-get install -y python3-distutils
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Bazarr"
|
msg_info "Installing Bazarr"
|
||||||
mkdir -p /var/lib/bazarr/
|
mkdir -p /var/lib/bazarr/
|
||||||
chmod 775 /var/lib/bazarr/
|
wget -q https://github.com/morpheus65535/bazarr/releases/latest/download/bazarr.zip
|
||||||
$STD wget --content-disposition 'https://github.com/morpheus65535/bazarr/releases/latest/download/bazarr.zip'
|
unzip -qq bazarr -d /opt/bazarr
|
||||||
$STD unzip bazarr -d Bazarr
|
chmod 775 /opt/bazarr /var/lib/bazarr/
|
||||||
mv Bazarr /opt
|
python3 -m pip install -q -r /opt/bazarr/requirements.txt
|
||||||
chmod 775 /opt/Bazarr
|
|
||||||
$STD python3 -m pip install -r requirements.txt
|
|
||||||
msg_ok "Installed Bazarr"
|
msg_ok "Installed Bazarr"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
@ -47,20 +37,15 @@ ExecStart=/usr/bin/python3 /opt/bazarr/bazarr.py
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
TimeoutStopSec=20
|
TimeoutStopSec=20
|
||||||
SyslogIdentifier=bazarr
|
SyslogIdentifier=bazarr
|
||||||
ExecStartPre=/bin/sleep 30
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
systemctl -q daemon-reload
|
systemctl enable -q --now bazarr
|
||||||
systemctl enable --now -q bazarr
|
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
root
|
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
rm -rf Bazarr.zip
|
rm -rf bazarr.zip
|
||||||
$STD apt-get autoremove
|
$STD apt-get autoremove
|
||||||
$STD apt-get autoclean
|
$STD apt-get autoclean
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
Loading…
Reference in New Issue