Skip to content

Commit 41b27b3

Browse files
push-app-to-main[bot]MickLesktremor021
authored
GlobaLeaks (#7707)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: CanbiZ <[email protected]> Co-authored-by: Slaviša Arežina <[email protected]>
1 parent 7ef8afe commit 41b27b3

File tree

4 files changed

+114
-0
lines changed

4 files changed

+114
-0
lines changed

ct/globaleaks.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 communtiy-scripts ORG
4+
# Author: Giovanni Pellerano (evilaliv3)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/globaleaks/globaleaks-whistleblowing-software
7+
8+
APP="GlobaLeaks"
9+
var_tags="${var_tags:-whistleblowing-software}"
10+
var_disk="${var_disk:-4}"
11+
var_cpu="${var_cpu:-2}"
12+
var_ram="${var_ram:-2048}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-13}"
15+
16+
header_info "$APP"
17+
variables
18+
color
19+
catch_errors
20+
21+
function update_script() {
22+
header_info
23+
check_container_storage
24+
check_container_resources
25+
if [[ ! -f /usr/sbin/globaleaks ]]; then
26+
msg_error "No ${APP} installation found!"
27+
exit
28+
fi
29+
30+
msg_info "Updating $APP LXC"
31+
$STD apt update
32+
$STD apt -y upgrade
33+
msg_ok "Updated $APP LXC"
34+
}
35+
36+
start
37+
build_container
38+
description
39+
40+
msg_ok "Completed Successfully!\n"
41+
echo -e "${CREATING}${GN} ${APP} setup has been successfully initialized!${CL}"
42+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
43+
echo -e "${TAB}${GATEWAY}${BGN}https://${IP}${CL}"

ct/headers/globaleaks

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
________ __ __ __
2+
/ ____/ /___ / /_ ____ _/ / ___ ____ _/ /_______
3+
/ / __/ / __ \/ __ \/ __ `/ / / _ \/ __ `/ //_/ ___/
4+
/ /_/ / / /_/ / /_/ / /_/ / /___/ __/ /_/ / ,< (__ )
5+
\____/_/\____/_.___/\__,_/_____/\___/\__,_/_/|_/____/
6+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "GlobaLeaks",
3+
"slug": "globaleaks",
4+
"categories": [
5+
0
6+
],
7+
"date_created": "2025-09-10",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 443,
12+
"documentation": "https://docs.globaleaks.org",
13+
"website": "https://www.globaleaks.org/",
14+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/globaleaks.webp",
15+
"config_path": "",
16+
"description": "GlobaLeaks is a free and open-source whistleblowing software enabling anyone to easily set up and maintain a secure reporting platform.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/globaleaks.sh",
21+
"resources": {
22+
"cpu": 2,
23+
"ram": 1024,
24+
"hdd": 4,
25+
"os": "debian",
26+
"version": "13"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": []
35+
}

install/globaleaks-install.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env bash
2+
# Copyright (c) 2021-2025 community-scripts ORG
3+
# Author: Giovanni Pellerano (evilaliv3)
4+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
5+
# Source: https://github.com/globaleaks/globaleaks-whistleblowing-software
6+
7+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
8+
color
9+
verb_ip6
10+
catch_errors
11+
setting_up_container
12+
network_check
13+
update_os
14+
15+
msg_info "Setup GlobaLeaks"
16+
DISTRO_CODENAME="$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release)"
17+
curl -fsSL https://deb.globaleaks.org/globaleaks.asc | gpg --dearmor -o /etc/apt/trusted.gpg.d/globaleaks.gpg
18+
echo "deb [signed-by=/etc/apt/trusted.gpg.d/globaleaks.gpg] http://deb.globaleaks.org $DISTRO_CODENAME/" >/etc/apt/sources.list.d/globaleaks.list
19+
echo -ne 'APPARMOR_SANDBOXING=0\nNETWORK_SANDBOXING=0' >/etc/default/globaleaks
20+
$STD apt update
21+
$STD apt -y install globaleaks
22+
msg_ok "Setup GlobaLeaks"
23+
24+
motd_ssh
25+
customize
26+
27+
msg_info "Cleaning up"
28+
$STD apt-get -y autoremove
29+
$STD apt-get -y autoclean
30+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)