Skip to content

Commit d949e83

Browse files
authored
core: Removal of OS/Version Selection from Advanced Settings (#3771)
* core: remove os selection in advanced_settings * debian/ubuntu vars
1 parent ed29ba3 commit d949e83

File tree

3 files changed

+73
-191
lines changed

3 files changed

+73
-191
lines changed

ct/debian.sh

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,37 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
66
# Source: https://www.debian.org/
77

88
APP="Debian"
9-
var_tags="os"
10-
var_cpu="1"
11-
var_ram="512"
12-
var_disk="2"
13-
var_os="debian"
14-
var_version="12"
15-
var_unprivileged="1"
9+
var_tags="${var_tags:-os}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-512}"
12+
var_disk="${var_disk:-2}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-12}"
15+
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
1818
variables
1919
color
2020
catch_errors
2121

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

3737
start
3838
build_container
3939
description
4040

4141
msg_ok "Completed Successfully!\n"
42-
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
42+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"

ct/ubuntu.sh

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,38 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
55
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
66
# Source: https://ubuntu.com/
77

8-
echo -e "Loading..."
98
APP="Ubuntu"
10-
var_tags="os"
11-
var_cpu="1"
12-
var_ram="512"
13-
var_disk="2"
14-
var_os="ubuntu"
15-
var_version="24.04"
9+
var_tags="${var_tags:-os}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-512}"
12+
var_disk="${var_disk:-2}"
13+
var_os="${var_os:-ubuntu}"
14+
var_version="${var_version:-24.04}"
15+
var_unprivileged="${var_unprivileged:-1}"
1616

1717
header_info "$APP"
1818
variables
1919
color
2020
catch_errors
2121

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

3737
start
3838
build_container
3939
description
4040

4141
msg_ok "Completed Successfully!\n"
42-
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
42+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"

0 commit comments

Comments
 (0)