From f7ea19f952281c8a18f7601188e73c571d351608 Mon Sep 17 00:00:00 2001 From: Tony Tran Date: Thu, 14 May 2026 10:44:58 +0700 Subject: [PATCH] add updatE --- update.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 update.sh diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..b9c8222 --- /dev/null +++ b/update.sh @@ -0,0 +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 + +echo "Hoàn thành." \ No newline at end of file