@@ -9,7 +9,7 @@ APP="Apt-Cacher-NG"
99var_tags=" ${var_tags:- caching} "
1010var_cpu=" ${var_cpu:- 1} "
1111var_ram=" ${var_ram:- 512} "
12- var_disk=" ${var_disk:- 2 } "
12+ var_disk=" ${var_disk:- 10 } "
1313var_os=" ${var_os:- debian} "
1414var_version=" ${var_version:- 12} "
1515var_unprivileged=" ${var_unprivileged:- 1} "
@@ -20,18 +20,18 @@ color
2020catch_errors
2121
2222function 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
3737start
@@ -41,4 +41,4 @@ description
4141msg_ok " Completed Successfully!\n"
4242echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
4343echo -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} "
0 commit comments