Files
ProxmoxVE/install/sftpgo-install.sh

43 lines
963 B
Bash
Raw Permalink Normal View History

2024-01-07 12:00:24 -05:00
#!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck
2024-01-07 12:00:24 -05:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://sftpgo.com/
2024-01-07 12:00:24 -05:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2024-01-07 12:00:24 -05:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y sqlite3
2024-01-07 12:00:24 -05:00
msg_ok "Installed Dependencies"
setup_go
2024-01-07 12:00:24 -05:00
msg_info "Installing SFTPGo"
2025-04-01 15:11:10 +02:00
curl -fsSL https://ftp.osuosl.org/pub/sftpgo/apt/gpg.key | gpg --dearmor -o /usr/share/keyrings/sftpgo-archive-keyring.gpg
cat <<EOF >/etc/apt/sources.list.d/sftpgo.sources
Types: deb
URIs: https://ftp.osuosl.org/pub/sftpgo/apt
Suites: bookworm
Components: main
Signed-By: /usr/share/keyrings/sftpgo-archive-keyring.gpg
EOF
$STD apt update
$STD apt install -y sftpgo
2024-01-07 12:00:24 -05:00
msg_ok "Installed SFTPGo"
motd_ssh
customize
msg_info "Cleaning up"
$STD apt -y autoremove
$STD apt -y autoclean
$STD apt -y clean
2025-04-01 11:18:12 +02:00
msg_ok "Cleaned"