Skip to content

Commit 3aa5665

Browse files
'Add new script' (#7442)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
1 parent 17d4c59 commit 3aa5665

File tree

4 files changed

+125
-0
lines changed

4 files changed

+125
-0
lines changed

ct/headers/resiliosync

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
____ _ ___ _____
2+
/ __ \___ _____(_) (_)___ / ___/__ ______ _____
3+
/ /_/ / _ \/ ___/ / / / __ \ \__ \/ / / / __ \/ ___/
4+
/ _, _/ __(__ ) / / / /_/ / ___/ / /_/ / / / / /__
5+
/_/ |_|\___/____/_/_/_/\____/ /____/\__, /_/ /_/\___/
6+
/____/

ct/resiliosync.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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: David Bennett (dbinit)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://www.resilio.com/sync
7+
8+
APP="Resilio Sync"
9+
var_tags="${var_tags:-sync}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-2048}"
12+
var_disk="${var_disk:-8}"
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+
if [[ ! -d /var/lib/resilio-sync ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
msg_info "Updating ${APP} LXC"
31+
$STD apt-get update
32+
$STD apt-get -y upgrade
33+
msg_ok "Updated Successfully"
34+
exit
35+
}
36+
37+
start
38+
build_container
39+
description
40+
41+
msg_ok "Completed Successfully!\n"
42+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
43+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
44+
echo -e "${TAB}${GATEWAY}${BGN}https://${IP}:8888${CL}"
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "Resilio Sync",
3+
"slug": "resiliosync",
4+
"categories": [
5+
11
6+
],
7+
"date_created": "2025-08-14",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"config_path": "/etc/resilio-sync/config.json",
12+
"interface_port": 8888,
13+
"documentation": "https://help.resilio.com/",
14+
"website": "https://www.resilio.com/sync",
15+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/resilio-sync.webp",
16+
"description": "Fast, reliable, and simple file sync and share solution, powered by P2P technology. Sync files across all your devices without storing them in the cloud.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/resilio-sync.sh",
21+
"resources": {
22+
"cpu": 2,
23+
"ram": 2048,
24+
"hdd": 8,
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 free registration, you will receive a license keyfile to your email address. Upload it into any LXC directory and select on first run.",
37+
"type": "info"
38+
}
39+
]
40+
}

install/resiliosync-install.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: David Bennett (dbinit)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://www.resilio.com/sync
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 "Setting up Resilio Sync Repository"
17+
curl -fsSL "https://linux-packages.resilio.com/resilio-sync/key.asc" >/etc/apt/trusted.gpg.d/resilio-sync.asc
18+
echo "deb [signed-by=/etc/apt/trusted.gpg.d/resilio-sync.asc] http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" >/etc/apt/sources.list.d/resilio-sync.list
19+
$STD apt-get update
20+
msg_ok "Resilio Sync Repository Setup"
21+
22+
msg_info "Installing Resilio Sync"
23+
$STD apt-get install -y resilio-sync
24+
sed -i "s/127.0.0.1:8888/0.0.0.0:8888/g" /etc/resilio-sync/config.json
25+
systemctl enable -q resilio-sync
26+
systemctl restart resilio-sync
27+
msg_ok "Installed Resilio Sync"
28+
29+
motd_ssh
30+
customize
31+
32+
msg_info "Cleaning up"
33+
$STD apt-get -y autoremove
34+
$STD apt-get -y autoclean
35+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)