Skip to content

Commit 3b96230

Browse files
authored
Various Downgrades to Debian 12 (MySQL / OMW / Technitium) (#8595)
* downgrades deb12 * fixes * Update inventree.sh * fix format * Update Debian version to 12 in omv and technitiumdns configs Changed the Debian version from 13 to 12 in both omv.json and technitiumdns.json to reflect the correct OS version for these configurations.
1 parent 99617f2 commit 3b96230

File tree

8 files changed

+76
-96
lines changed

8 files changed

+76
-96
lines changed

ct/inventree.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ description
4242
msg_ok "Completed Successfully!\n"
4343
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
4444
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
45-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
45+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"

ct/mysql.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-1024}"
1212
var_disk="${var_disk:-4}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-13}"
14+
var_version="${var_version:-12}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -20,18 +20,18 @@ color
2020
catch_errors
2121

2222
function update_script() {
23-
header_info
24-
check_container_storage
25-
check_container_resources
26-
if [[ ! -f /usr/share/keyrings/mysql.gpg ]]; then
27-
msg_error "No ${APP} Installation Found!"
28-
exit
29-
fi
30-
msg_info "Updating ${APP} LXC"
31-
$STD apt update
32-
$STD apt -y upgrade
33-
msg_ok "Updated Successfully"
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -f /usr/share/keyrings/mysql.gpg ]]; then
27+
msg_error "No ${APP} Installation Found!"
3428
exit
29+
fi
30+
msg_info "Updating ${APP} LXC"
31+
$STD apt update
32+
$STD apt -y upgrade
33+
msg_ok "Updated Successfully"
34+
exit
3535
}
3636

3737
start
@@ -41,4 +41,4 @@ description
4141
msg_ok "Completed Successfully!\n"
4242
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
4343
echo -e "${INFO}${YW} Access it using the following IP:${CL}"
44-
echo -e "${TAB}${GATEWAY}${BGN}${IP}:3306${CL}"
44+
echo -e "${TAB}${GATEWAY}${BGN}${IP}:3306${CL}"

ct/omv.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-2}"
1111
var_ram="${var_ram:-1024}"
1212
var_disk="${var_disk:-4}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-13}"
14+
var_version="${var_version:-12}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
@@ -20,18 +20,18 @@ color
2020
catch_errors
2121

2222
function update_script() {
23-
header_info
24-
check_container_storage
25-
check_container_resources
26-
if [[ ! -f /etc/apt/sources.list.d/openmediavault.list ]]; then
27-
msg_error "No ${APP} Installation Found!"
28-
exit
29-
fi
30-
msg_info "Updating ${APP} LXC"
31-
$STD apt update
32-
$STD apt -y upgrade
33-
msg_ok "Updated Successfully"
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -f /etc/apt/sources.list.d/openmediavault.list ]]; then
27+
msg_error "No ${APP} Installation Found!"
3428
exit
29+
fi
30+
msg_info "Updating ${APP} LXC"
31+
$STD apt update
32+
$STD apt -y upgrade
33+
msg_ok "Updated Successfully"
34+
exit
3535
}
3636

3737
start
@@ -41,4 +41,4 @@ description
4141
msg_ok "Completed Successfully!\n"
4242
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
4343
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
44-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
44+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"

ct/technitiumdns.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-512}"
1212
var_disk="${var_disk:-2}"
1313
var_os="${var_os:-debian}"
14-
var_version="${var_version:-13}"
14+
var_version="${var_version:-12}"
1515
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"

frontend/public/json/mysql.json

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
{
2-
"name": "MySQL",
3-
"slug": "mysql",
4-
"categories": [
5-
8
6-
],
7-
"date_created": "2024-10-10",
8-
"type": "ct",
9-
"updateable": true,
10-
"privileged": false,
11-
"interface_port": null,
12-
"documentation": "https://dev.mysql.com/doc/",
13-
"website": "https://www.mysql.com/",
14-
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/mysql.webp",
15-
"config_path": "",
16-
"description": "MySQL is an open-source relational database management system (RDBMS) that uses SQL for managing and manipulating data. It is known for its scalability, reliability, and high performance, making it suitable for small to large-scale applications. Key features include support for ACID transactions, data replication for high availability, and compatibility with various programming languages like Python, PHP, and Java.",
17-
"install_methods": [
18-
{
19-
"type": "default",
20-
"script": "ct/mysql.sh",
21-
"resources": {
22-
"cpu": 1,
23-
"ram": 1024,
24-
"hdd": 4,
25-
"os": "debian",
26-
"version": "13"
27-
}
28-
}
29-
],
30-
"default_credentials": {
31-
"username": null,
32-
"password": null
2+
"name": "MySQL",
3+
"slug": "mysql",
4+
"categories": [
5+
8
6+
],
7+
"date_created": "2024-10-10",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": null,
12+
"documentation": "https://dev.mysql.com/doc/",
13+
"website": "https://www.mysql.com/",
14+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/mysql.webp",
15+
"config_path": "",
16+
"description": "MySQL is an open-source relational database management system (RDBMS) that uses SQL for managing and manipulating data. It is known for its scalability, reliability, and high performance, making it suitable for small to large-scale applications. Key features include support for ACID transactions, data replication for high availability, and compatibility with various programming languages like Python, PHP, and Java.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/mysql.sh",
21+
"resources": {
22+
"cpu": 1,
23+
"ram": 1024,
24+
"hdd": 4,
25+
"os": "debian",
26+
"version": "12"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": [
35+
{
36+
"text": "Database credentials: `cat mysql.creds`",
37+
"type": "info"
3338
},
34-
"notes": [
35-
{
36-
"text": "Database credentials: `cat mysql.creds`",
37-
"type": "info"
38-
},
39-
{
40-
"text": "With an option to install the MySQL 8.4 LTS release instead of MySQL 8.0",
41-
"type": "info"
42-
},
43-
{
44-
"text": "If installed, access phpMyAdmin at `http://<LXC_IP>/phpMyAdmin`, case sensitive.",
45-
"type": "info"
46-
}
47-
]
39+
{
40+
"text": "With an option to install the MySQL 8.4 LTS release instead of MySQL 8.0",
41+
"type": "info"
42+
},
43+
{
44+
"text": "If installed, access phpMyAdmin at `http://<LXC_IP>/phpMyAdmin`, case sensitive.",
45+
"type": "info"
46+
}
47+
]
4848
}

frontend/public/json/omv.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ram": 1024,
2424
"hdd": 4,
2525
"os": "debian",
26-
"version": "13"
26+
"version": "12"
2727
}
2828
}
2929
],

frontend/public/json/technitiumdns.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ram": 512,
2424
"hdd": 2,
2525
"os": "debian",
26-
"version": "13"
26+
"version": "12"
2727
}
2828
}
2929
],

install/mysql-install.sh

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,7 @@ msg_ok "MySQL Server configured"
6363

6464
read -r -p "${TAB3}Would you like to add PhpMyAdmin? <y/N> " prompt
6565
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
66-
msg_info "Installing phpMyAdmin"
67-
$STD apt install -y \
68-
apache2 \
69-
php \
70-
php-mysqli \
71-
php-mbstring \
72-
php-zip \
73-
php-gd \
74-
php-json \
75-
php-curl
76-
77-
curl -fsSL "https://files.phpmyadmin.net/phpMyAdmin/5.2.2/phpMyAdmin-5.2.2-all-languages.tar.gz" -o "phpMyAdmin-5.2.2-all-languages.tar.gz"
78-
mkdir -p /var/www/html/phpMyAdmin
79-
tar xf phpMyAdmin-5.2.2-all-languages.tar.gz --strip-components=1 -C /var/www/html/phpMyAdmin
80-
cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php
81-
SECRET=$(openssl rand -base64 24)
82-
sed -i "s#\$cfg\['blowfish_secret'\] = '';#\$cfg['blowfish_secret'] = '${SECRET}';#" /var/www/html/phpMyAdmin/config.inc.php
83-
chmod 660 /var/www/html/phpMyAdmin/config.inc.php
84-
chown -R www-data:www-data /var/www/html/phpMyAdmin
85-
systemctl restart apache2
86-
msg_ok "Installed phpMyAdmin"
66+
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/phpmyadmin.sh)"
8767
fi
8868

8969
msg_info "Start Service"

0 commit comments

Comments
 (0)