Files
ProxmoxVE/install/pairdrop-install.sh

48 lines
941 B
Bash
Raw Normal View History

2024-01-25 13:20:36 -05:00
#!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck
2024-01-25 13:20:36 -05:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://pairdrop.net/
2024-01-25 13:20:36 -05:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2024-01-25 13:20:36 -05:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
NODE_VERSION="22" setup_nodejs
2025-08-04 09:15:32 +02:00
fetch_and_deploy_gh_release "pairdrop" "schlagmichdoch/PairDrop" "tarball"
2024-01-25 13:20:36 -05:00
2025-08-04 09:15:32 +02:00
msg_info "Configuring PairDrop"
2024-01-25 13:20:36 -05:00
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
2024-01-25 13:20:36 -05:00
msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
2024-05-02 13:26:16 -04:00
$STD apt-get -y autoremove
$STD apt-get -y autoclean
2024-01-25 13:20:36 -05:00
msg_ok "Cleaned"