#!/bin/bash
echo "3s后开始安装";

sleep 3s
echo "[Unit]
Description=ss
After=network.target

[Service]
Type=simple
User=root
Restart=always
RestartSec=5s
ExecStart=/usr/local/bin/ssserver -s 0.0.0.0:873 -m 2022-blake3-chacha20-poly1305 -k Q6Q44CjgaeH70hH86wEnjIoIfuebK6UVk8OjNFnRS9E= -U
LimitNOFILE=1048576

[Install]
WantedBy=multi-user.target" > /etc/systemd/system/ss-873.service


wget --no-check-certificate https://file.hassy.co/ss/ssserver
mv ssserver /usr/local/bin/ssserver
chmod +x /usr/local/bin/ssserver

systemctl enable --now ss-873



