File tree Expand file tree Collapse file tree 3 files changed +86
-1
lines changed
Expand file tree Collapse file tree 3 files changed +86
-1
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ source <( curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+ # Copyright (c) 2021-2025 community-scripts ORG
4+ # Author: Johann3s-H (An!ma)
5+ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+ # Source: https://forgejo.org/
7+
8+ APP=" Alpine-Forgejo"
9+ var_tags=" ${var_tags:- alpine;git} "
10+ var_cpu=" ${var_cpu:- 1} "
11+ var_ram=" ${var_ram:- 256} "
12+ var_disk=" ${var_disk:- 1} "
13+ var_os=" ${var_os:- alpine} "
14+ var_version=" ${var_version:- 3.21} "
15+ var_unprivileged=" ${var_unprivileged:- 1} "
16+
17+ header_info " $APP "
18+ variables
19+ color
20+ catch_errors
21+
22+ function update_script() {
23+ msg_info " Updating Alpine Packages"
24+ $STD apk -U upgrade
25+ msg_ok " Updated Alpine Packages"
26+
27+ msg_info " Updating Forgejo"
28+ $STD apk upgrade forgejo
29+ msg_ok " Updated Forgejo"
30+
31+ msg_info " Restarting Forgejo"
32+ $STD rc-service forgejo restart
33+ msg_ok " Restarted Forgejo"
34+
35+ exit 0
36+ }
37+
38+ start
39+ build_container
40+ description
41+
42+ msg_ok " Completed Successfully!\n"
43+ echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
44+ echo -e " ${INFO}${YW} Access it using the following URL:${CL} "
45+ echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :3000${CL} "
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Copyright (c) 2021-2025 community-scripts ORG
4+ # Author: Johann3s-H (An!ma)
5+ # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+ # Source: https://forgejo.org/
7+
8+ source /dev/stdin <<< " $FUNCTIONS_FILE_PATH"
9+ color
10+ verb_ip6
11+ catch_errors
12+ setting_up_container
13+ network_check
14+ update_os
15+
16+ msg_info " Installing Forgejo"
17+ $STD apk add --no-cache forgejo
18+ msg_ok " Installed Forgejo"
19+
20+ msg_info " Enabling Forgejo Service"
21+ $STD rc-update add forgejo default
22+ msg_ok " Enabled Forgejo Service"
23+
24+ msg_info " Starting Forgejo"
25+ $STD service forgejo start
26+ msg_ok " Started Forgejo"
27+
28+ motd_ssh
29+ customize
You can’t perform that action at this time.
0 commit comments