File tree Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ source <( curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
3
+ # Copyright (c) 2021-2024 tteck
4
+ # Author: tteck (tteckster)
5
+ # License: MIT
6
+ # https://github.com/tteck/Proxmox/raw/main/LICENSE
7
+
8
+ function header_info {
9
+ clear
10
+ cat << "EOF "
11
+ ___ __ ______ __ _ ________
12
+ / | ____ / /_ / ____/___ ______/ /_ ___ _____ / | / / ____/
13
+ / /| | / __ \/ __/__/ / / __ `/ ___/ __ \/ _ \/ ___/__/ |/ / / __
14
+ / ___ |/ /_/ / /_/__/ /___/ /_/ / /__/ / / / __/ / /__/ /| / /_/ /
15
+ /_/ |_/ .___/\__/ \____/\__,_/\___/_/ /_/\___/_/ /_/ |_/\____/
16
+ /_/
17
+
18
+ EOF
19
+ }
20
+ header_info
21
+ echo -e " Loading..."
22
+ APP=" Apt-Cacher-NG"
23
+ var_disk=" 2"
24
+ var_cpu=" 1"
25
+ var_ram=" 512"
26
+ var_os=" debian"
27
+ var_version=" 12"
28
+ variables
29
+ color
30
+ catch_errors
31
+
32
+ function default_settings() {
33
+ CT_TYPE=" 1"
34
+ PW=" "
35
+ CT_ID=$NEXTID
36
+ HN=$NSAPP
37
+ DISK_SIZE=" $var_disk "
38
+ CORE_COUNT=" $var_cpu "
39
+ RAM_SIZE=" $var_ram "
40
+ BRG=" vmbr0"
41
+ NET=" dhcp"
42
+ GATE=" "
43
+ DISABLEIP6=" no"
44
+ MTU=" "
45
+ SD=" "
46
+ NS=" "
47
+ MAC=" "
48
+ VLAN=" "
49
+ SSH=" no"
50
+ VERB=" no"
51
+ echo_default
52
+ }
53
+
54
+ function update_script() {
55
+ header_info
56
+ if [[ ! -d /var ]]; then msg_error " No ${APP} Installation Found!" ; exit ; fi
57
+ msg_info " Updating $APP LXC"
58
+ apt-get update & > /dev/null
59
+ apt-get -y upgrade & > /dev/null
60
+ msg_ok " Updated $APP LXC"
61
+ exit
62
+ }
63
+
64
+ start
65
+ build_container
66
+ description
67
+
68
+ msg_ok " Completed Successfully!\n"
69
+ echo -e " ${APP} maintenance page should be reachable by going to the following URL.
70
+ ${BL} http://${IP} :3142/acng-report.html${CL} \n"
You can’t perform that action at this time.
0 commit comments