Skip to content

Commit 51a6024

Browse files
Cloudreve (#6044)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
1 parent 49aa5ae commit 51a6024

3 files changed

Lines changed: 141 additions & 0 deletions

File tree

ct/cloudreve.sh

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#!/usr/bin/env bash
2+
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: MickLesk (CanbiZ)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://cloudreve.org/
7+
8+
APP="Cloudreve"
9+
var_tags="${var_tags:-cloud}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-1024}"
12+
var_disk="${var_disk:-10}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-12}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
27+
if [[ ! -d /opt/cloudreve ]]; then
28+
msg_error "No ${APP} Installation Found!"
29+
exit
30+
fi
31+
32+
RELEASE=$(curl -fsSL https://api.github.com/repos/cloudreve/cloudreve/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
33+
if [[ "${RELEASE}" != "$(cat ~/.cloudreve 2>/dev/null)" ]] || [[ ! -f ~/.cloudreve ]]; then
34+
msg_info "Stopping $APP"
35+
systemctl stop cloudreve
36+
msg_ok "Stopped $APP"
37+
38+
fetch_and_deploy_gh_release "cloudreve" "cloudreve/cloudreve" "prebuild" "latest" "/opt/cloudreve" "*linux_amd64.tar.gz"
39+
40+
msg_info "Starting $APP"
41+
systemctl start cloudreve
42+
msg_ok "Started $APP"
43+
44+
msg_ok "Update Successful"
45+
else
46+
msg_ok "No update required. ${APP} is already at v${RELEASE}"
47+
fi
48+
exit
49+
}
50+
51+
start
52+
build_container
53+
description
54+
55+
msg_ok "Completed Successfully!\n"
56+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
57+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
58+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5212${CL}"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "Cloudreve",
3+
"slug": "cloudreve",
4+
"categories": [
5+
12
6+
],
7+
"date_created": "2025-07-17",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 5212,
12+
"documentation": "https://docs.cloudreve.org/en/",
13+
"website": "https://cloudreve.org/",
14+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/cloudreve.webp",
15+
"config_path": "/opt/cloudreve/data/config.ini",
16+
"description": "Cloudreve is an open-source, community-driven cloud storage system that provides file sharing, synchronization, and management features. It supports a wide range of storage backends and integrates with various notification and logging platforms.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/cloudreve.sh",
21+
"resources": {
22+
"cpu": 1,
23+
"ram": 1024,
24+
"hdd": 10,
25+
"os": "Debian",
26+
"version": "12"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": [
35+
{
36+
"text": "After Installation: Register your user -> Login -> Dashboard -> Accept Primary URL.",
37+
"type": "warn"
38+
}
39+
]
40+
}

install/cloudreve-install.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+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: MickLesk (CanbiZ)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://cloudreve.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+
fetch_and_deploy_gh_release "cloudreve" "cloudreve/cloudreve" "prebuild" "latest" "/opt/cloudreve" "*linux_amd64.tar.gz"
17+
18+
msg_info "Setup Service"
19+
cat <<EOF >/etc/systemd/system/cloudreve.service
20+
[Unit]
21+
Description=Cloudreve Service
22+
After=network.target
23+
24+
[Service]
25+
Type=simple
26+
ExecStart=/opt/cloudreve/cloudreve
27+
Restart=on-failure
28+
RestartSec=5
29+
30+
[Install]
31+
WantedBy=multi-user.target
32+
EOF
33+
34+
systemctl enable -q --now cloudreve
35+
msg_ok "Service Setup"
36+
37+
motd_ssh
38+
customize
39+
40+
msg_info "Cleaning up"
41+
$STD apt-get -y autoremove
42+
$STD apt-get -y autoclean
43+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)