File tree Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Expand file tree Collapse file tree 1 file changed +72
-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=" ntfy"
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
+ APT_CACHER=" "
44
+ APT_CACHER_IP=" "
45
+ DISABLEIP6=" no"
46
+ MTU=" "
47
+ SD=" "
48
+ NS=" "
49
+ MAC=" "
50
+ VLAN=" "
51
+ SSH=" no"
52
+ VERB=" no"
53
+ echo_default
54
+ }
55
+
56
+ function update_script() {
57
+ header_info
58
+ if [[ ! -d /var ]]; then msg_error " No ${APP} Installation Found!" ; exit ; fi
59
+ msg_info " Updating $APP LXC"
60
+ apt-get update & > /dev/null
61
+ apt-get -y upgrade & > /dev/null
62
+ msg_ok " Updated $APP LXC"
63
+ exit
64
+ }
65
+
66
+ start
67
+ build_container
68
+ description
69
+
70
+ msg_ok " Completed Successfully!\n"
71
+ echo -e " ${APP} should be reachable by going to the following URL.
72
+ ${BL} http://${IP}${CL} \n"
You can’t perform that action at this time.
0 commit comments