17 lines
435 B
Bash
Executable File
17 lines
435 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Dừng service
|
|
echo "Đang dừng cliproxyapi.service..."
|
|
systemctl --user stop cliproxyapi.service
|
|
|
|
# Kiểm tra file setup.sh có tồn tại không
|
|
if [ -f "setup.sh" ]; then
|
|
echo "Tìm thấy setup.sh, đang chạy..."
|
|
chmod +x setup.sh # Đảm bảo quyền thực thi
|
|
./setup.sh
|
|
else
|
|
echo "Lỗi: Không tìm thấy file setup.sh trong thư mục hiện tại"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Hoàn thành." |