mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-03-08 08:08:10 +00:00
52 install scripts had a project website in '# Source:' but no GitHub link. Merged the GitHub repo URL into the Source header as: # Source: https://website.com/ | Github: https://github.com/OWNER/REPO Repos sourced from fetch_and_deploy_gh_release calls, get_latest_github_release calls, or known project repos for npm/pip installed apps. Two scripts (fumadocs, pve-scripts-local) had no Source line at all — added one. Shinobi skipped (GitLab-only, no GitHub repo).
44 lines
912 B
Bash
44 lines
912 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Copyright (c) 2021-2026 tteck
|
|
# Author: tteck (tteckster)
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://pairdrop.net/ | Github: https://github.com/schlagmichdoch/PairDrop
|
|
|
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
color
|
|
verb_ip6
|
|
catch_errors
|
|
setting_up_container
|
|
network_check
|
|
update_os
|
|
|
|
NODE_VERSION="22" setup_nodejs
|
|
fetch_and_deploy_gh_release "pairdrop" "schlagmichdoch/PairDrop" "tarball"
|
|
|
|
msg_info "Configuring PairDrop"
|
|
cd /opt/pairdrop
|
|
$STD npm install
|
|
msg_ok "Installed PairDrop"
|
|
|
|
msg_info "Creating Service"
|
|
cat <<EOF >/etc/systemd/system/pairdrop.service
|
|
[Unit]
|
|
Description=PairDrop Service
|
|
After=network.target
|
|
|
|
[Service]
|
|
ExecStart=npm start
|
|
WorkingDirectory=/opt/pairdrop
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
EOF
|
|
systemctl enable -q --now pairdrop
|
|
msg_ok "Created Service"
|
|
|
|
motd_ssh
|
|
customize
|
|
cleanup_lxc
|