Skip to content

Commit 591af3f

Browse files
authored
Increase default disk size for Apt-Cacher-NG (#7352)
1 parent a3e0df9 commit 591af3f

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

ct/apt-cacher-ng.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ APP="Apt-Cacher-NG"
99
var_tags="${var_tags:-caching}"
1010
var_cpu="${var_cpu:-1}"
1111
var_ram="${var_ram:-512}"
12-
var_disk="${var_disk:-2}"
12+
var_disk="${var_disk:-10}"
1313
var_os="${var_os:-debian}"
1414
var_version="${var_version:-12}"
1515
var_unprivileged="${var_unprivileged:-1}"
@@ -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 [[ ! -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
@@ -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}:3142/acng-report.html${CL}"
44+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3142/acng-report.html${CL}"

frontend/public/json/apt-cacher-ng.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"resources": {
2222
"cpu": 1,
2323
"ram": 512,
24-
"hdd": 2,
24+
"hdd": 10,
2525
"os": "debian",
2626
"version": "12"
2727
}

0 commit comments

Comments
 (0)