mirror of https://github.com/tteck/Proxmox.git
Compare commits
6 Commits
2101583d1a
...
9520eebb34
Author | SHA1 | Date |
---|---|---|
|
9520eebb34 | |
|
86c04bfe22 | |
|
a66326f613 | |
|
59110997d5 | |
|
28f5363737 | |
|
9ef8a4ae4f |
|
@ -4,6 +4,14 @@
|
||||||
|
|
||||||
- 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-06-17
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- **UniFi Network Application LXC**
|
||||||
|
- Now distribution agnostic.
|
||||||
|
- **Omada Controller LXC**
|
||||||
|
- Now distribution agnostic.
|
||||||
## 2023-06-16
|
## 2023-06-16
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -17,14 +17,13 @@ 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 mc
|
||||||
$STD apt-get install -y apache2
|
|
||||||
$STD apt-get install -y apt-transport-https
|
$STD apt-get install -y apt-transport-https
|
||||||
$STD apt-get install -y lsb-release
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing PHP 8.1"
|
msg_info "Installing PHP 8.1"
|
||||||
|
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)"
|
||||||
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
|
||||||
sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
|
echo -e "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $VERSION main" >/etc/apt/sources.list.d/php.list
|
||||||
$STD apt-get update
|
$STD apt-get update
|
||||||
$STD apt-get install -y php8.1
|
$STD apt-get install -y php8.1
|
||||||
$STD apt-get install -y libapache2-mod-php8.1
|
$STD apt-get install -y libapache2-mod-php8.1
|
||||||
|
|
|
@ -38,7 +38,6 @@ if [[ "$PCT_OSVERSION" == "12" ]]; then
|
||||||
liblapack3 \
|
liblapack3 \
|
||||||
liblapack-dev \
|
liblapack-dev \
|
||||||
libatlas-base-dev
|
libatlas-base-dev
|
||||||
$STD systemctl disable systemd-networkd-wait-online.service
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
else
|
else
|
||||||
msg_info "Installing Dependencies, Bullseye (Patience)"
|
msg_info "Installing Dependencies, Bullseye (Patience)"
|
||||||
|
|
|
@ -30,6 +30,8 @@ $STD apt-get -y install zulu8-jdk
|
||||||
msg_ok "Installed Azul Zulu"
|
msg_ok "Installed Azul Zulu"
|
||||||
|
|
||||||
msg_info "Installing MongoDB"
|
msg_info "Installing MongoDB"
|
||||||
|
wget -qL http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
|
||||||
|
$STD dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
|
||||||
wget -qL https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/multiverse/binary-amd64/mongodb-org-server_3.6.23_amd64.deb
|
wget -qL https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/multiverse/binary-amd64/mongodb-org-server_3.6.23_amd64.deb
|
||||||
$STD dpkg -i mongodb-org-server_3.6.23_amd64.deb
|
$STD dpkg -i mongodb-org-server_3.6.23_amd64.deb
|
||||||
msg_ok "Installed MongoDB"
|
msg_ok "Installed MongoDB"
|
||||||
|
@ -43,7 +45,7 @@ motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
rm -f Omada_SDN_Controller_v5.9.31_Linux_x64.deb mongodb-org-server_3.6.23_amd64.deb zulu-repo_1.0.0-3_all.deb
|
rm -f Omada_SDN_Controller_v5.9.31_Linux_x64.deb mongodb-org-server_3.6.23_amd64.deb zulu-repo_1.0.0-3_all.deb libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
|
||||||
$STD apt-get autoremove
|
$STD apt-get autoremove
|
||||||
$STD apt-get autoclean
|
$STD apt-get autoclean
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
|
|
|
@ -20,12 +20,19 @@ $STD apt-get install -y mc
|
||||||
$STD apt-get install -y apt-transport-https
|
$STD apt-get install -y apt-transport-https
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
if [[ "$PCT_OSVERSION" == "12" ]]; then
|
||||||
|
echo -e "deb http://ftp.debian.org/debian bullseye main" >/etc/apt/sources.list.d/openjdk-11-jre-headless.list
|
||||||
|
$STD apt-get update
|
||||||
|
fi
|
||||||
|
|
||||||
msg_info "Installing OpenJDK"
|
msg_info "Installing OpenJDK"
|
||||||
$STD apt-get install -y openjdk-11-jre-headless
|
$STD apt-get install -y openjdk-11-jre-headless
|
||||||
$STD apt-mark hold openjdk-11-*
|
$STD apt-mark hold openjdk-11-*
|
||||||
msg_ok "Installed OpenJDK"
|
msg_ok "Installed OpenJDK"
|
||||||
|
|
||||||
msg_info "Installing MongoDB"
|
msg_info "Installing MongoDB"
|
||||||
|
wget -qL http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
|
||||||
|
$STD dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
|
||||||
wget -qL https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/multiverse/binary-amd64/mongodb-org-server_3.6.23_amd64.deb
|
wget -qL https://repo.mongodb.org/apt/ubuntu/dists/bionic/mongodb-org/3.6/multiverse/binary-amd64/mongodb-org-server_3.6.23_amd64.deb
|
||||||
$STD dpkg -i mongodb-org-server_3.6.23_amd64.deb
|
$STD dpkg -i mongodb-org-server_3.6.23_amd64.deb
|
||||||
msg_ok "Installed MongoDB"
|
msg_ok "Installed MongoDB"
|
||||||
|
@ -41,7 +48,7 @@ motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
rm -rf mongodb-org-server_3.6.23_amd64.deb
|
rm -rf mongodb-org-server_3.6.23_amd64.deb libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
|
||||||
$STD apt-get autoremove
|
$STD apt-get autoremove
|
||||||
$STD apt-get autoclean
|
$STD apt-get autoclean
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
|
|
|
@ -124,6 +124,9 @@ motd_ssh() {
|
||||||
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
|
sed -i "s/#PermitRootLogin prohibit-password/PermitRootLogin yes/g" /etc/ssh/sshd_config
|
||||||
systemctl restart sshd
|
systemctl restart sshd
|
||||||
fi
|
fi
|
||||||
|
if [[ "$PCT_OSVERSION" == "12" ]]; then
|
||||||
|
$STD systemctl disable systemd-networkd-wait-online.service
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function customizes the container by modifying the getty service and enabling auto-login for the root user
|
# This function customizes the container by modifying the getty service and enabling auto-login for the root user
|
||||||
|
|
Loading…
Reference in New Issue