diff --git a/update.sh b/update.sh index b9c8222..ed52ec8 100755 --- a/update.sh +++ b/update.sh @@ -1,17 +1,17 @@ -#!/bin/bash - -# Dừng service -echo "Đang dừng cliproxyapi.service..." -systemctl --user stop cliproxyapi.service - -# Kiểm tra file install.sh có tồn tại không -if [ -f "install.sh" ]; then - echo "Tìm thấy install.sh, đang chạy..." - chmod +x install.sh # Đảm bảo quyền thực thi - ./install.sh -else - echo "Lỗi: Không tìm thấy file install.sh trong thư mục hiện tại" - exit 1 -fi - +#!/bin/bash + +# Dừng service +echo "Đang dừng cliproxyapi.service..." +systemctl --user stop cliproxyapi.service + +# Kiểm tra file install.sh có tồn tại không +if [ -f "install.sh" ]; then + echo "Tìm thấy install.sh, đang chạy..." + chmod +x install.sh # Đảm bảo quyền thực thi + ./install.sh +else + echo "Lỗi: Không tìm thấy file install.sh trong thư mục hiện tại" + exit 1 +fi + echo "Hoàn thành." \ No newline at end of file