mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "937695b3b894e65d976197075b86307a96fe809b" and "4d2343607b21922043a67ae9c53a881ae31978e0" have entirely different histories.
937695b3b8
...
4d2343607b
|
@ -5,13 +5,6 @@
|
||||||
|
|
||||||
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
|
- All LXC instances created using this repository come pre-installed with Midnight Commander, which is a command-line tool (`mc`) that offers a user-friendly file and directory management interface for the terminal environment.
|
||||||
|
|
||||||
## 2023-10-15
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- **TasmoAdmin LXC**
|
|
||||||
- NEW Script
|
|
||||||
|
|
||||||
## 2023-10-14
|
## 2023-10-14
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -1,69 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
|
|
||||||
# Copyright (c) 2021-2023 tteck
|
|
||||||
# Author: tteck (tteckster)
|
|
||||||
# License: MIT
|
|
||||||
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
|
||||||
|
|
||||||
function header_info {
|
|
||||||
clear
|
|
||||||
cat <<"EOF"
|
|
||||||
______ ___ __ _
|
|
||||||
/_ __/___ __________ ___ ____ / | ____/ /___ ___ (_)___
|
|
||||||
/ / / __ `/ ___/ __ `__ \/ __ \/ /| |/ __ / __ `__ \/ / __ \
|
|
||||||
/ / / /_/ (__ ) / / / / / /_/ / ___ / /_/ / / / / / / / / / /
|
|
||||||
/_/ \__,_/____/_/ /_/ /_/\____/_/ |_\__,_/_/ /_/ /_/_/_/ /_/
|
|
||||||
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
header_info
|
|
||||||
echo -e "Loading..."
|
|
||||||
APP="TasmoAdmin"
|
|
||||||
var_disk="2"
|
|
||||||
var_cpu="1"
|
|
||||||
var_ram="512"
|
|
||||||
var_os="debian"
|
|
||||||
var_version="12"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function default_settings() {
|
|
||||||
CT_TYPE="1"
|
|
||||||
PW=""
|
|
||||||
CT_ID=$NEXTID
|
|
||||||
HN=$NSAPP
|
|
||||||
DISK_SIZE="$var_disk"
|
|
||||||
CORE_COUNT="$var_cpu"
|
|
||||||
RAM_SIZE="$var_ram"
|
|
||||||
BRG="vmbr0"
|
|
||||||
NET="dhcp"
|
|
||||||
GATE=""
|
|
||||||
DISABLEIP6="no"
|
|
||||||
MTU=""
|
|
||||||
SD=""
|
|
||||||
NS=""
|
|
||||||
MAC=""
|
|
||||||
VLAN=""
|
|
||||||
SSH="no"
|
|
||||||
VERB="no"
|
|
||||||
echo_default
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
if [[ ! -d /var ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
|
||||||
msg_info "Updating $APP LXC"
|
|
||||||
apt-get update &>/dev/null
|
|
||||||
apt-get -y upgrade &>/dev/null
|
|
||||||
msg_ok "Updated $APP LXC"
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
start
|
|
||||||
build_container
|
|
||||||
description
|
|
||||||
|
|
||||||
msg_ok "Completed Successfully!\n"
|
|
||||||
echo -e "${APP} should be reachable by going to the following URL.
|
|
||||||
${BL}http://${IP}:9999${CL} \n"
|
|
|
@ -1,64 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2023 tteck
|
|
||||||
# Author: tteck (tteckster)
|
|
||||||
# License: MIT
|
|
||||||
# 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"
|
|
||||||
$STD apt-get install -y curl
|
|
||||||
$STD apt-get install -y sudo
|
|
||||||
$STD apt-get install -y mc
|
|
||||||
$STD apt-get install -y apache2
|
|
||||||
$STD apt-get install -y php8.2
|
|
||||||
$STD apt-get install -y libapache2-mod-php
|
|
||||||
$STD apt-get install -y php8.2-curl
|
|
||||||
$STD apt-get install -y php8.2-zip
|
|
||||||
$STD apt-get install -y php8.2-mbstring
|
|
||||||
$STD apt-get install -y php8.2-xml
|
|
||||||
$STD apt-get install -y git
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
msg_info "Installing TasmoAdmin"
|
|
||||||
wget -q https://github.com/TasmoAdmin/TasmoAdmin/releases/download/v3.1.1/tasmoadmin_v3.1.1.tar.gz
|
|
||||||
tar -xzf tasmoadmin_v3.1.1.tar.gz -C /var/www/
|
|
||||||
rm -rf tasmoadmin_v3.1.1.tar.gz /etc/php/8.2/apache2/conf.d/10-opcache.ini
|
|
||||||
chown -R www-data:www-data /var/www/tasmoadmin
|
|
||||||
chmod 777 /var/www/tasmoadmin/tmp /var/www/tasmoadmin/data
|
|
||||||
cat <<EOF >/etc/apache2/sites-available/tasmoadmin.conf
|
|
||||||
<VirtualHost *:9999>
|
|
||||||
ServerName tasmoadmin
|
|
||||||
ServerAdmin webmaster@localhost
|
|
||||||
DocumentRoot /var/www/tasmoadmin
|
|
||||||
<Directory /var/www/tasmoadmin>
|
|
||||||
AllowOverride All
|
|
||||||
Order allow,deny
|
|
||||||
allow from all
|
|
||||||
</Directory>
|
|
||||||
ErrorLog /var/log/apache2/error.log
|
|
||||||
LogLevel warn
|
|
||||||
CustomLog /var/log/apache2/access.log combined
|
|
||||||
ServerSignature On
|
|
||||||
</VirtualHost>
|
|
||||||
EOF
|
|
||||||
sed -i '6iListen 9999' /etc/apache2/ports.conf
|
|
||||||
$STD a2ensite tasmoadmin
|
|
||||||
$STD a2enmod rewrite
|
|
||||||
systemctl reload apache2
|
|
||||||
systemctl restart apache2
|
|
||||||
msg_ok "Installed TasmoAdmin"
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
|
||||||
$STD apt-get autoremove
|
|
||||||
$STD apt-get autoclean
|
|
||||||
msg_ok "Cleaned"
|
|
Loading…
Reference in New Issue