From ea07c89636029c8dadafd1b91619970485817617 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Fri, 27 Sep 2019 11:12:46 +0200 Subject: [PATCH] Create update script --- readme.txt | 4 ---- update.sh | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 update.sh diff --git a/readme.txt b/readme.txt index d874849..fec5678 100644 --- a/readme.txt +++ b/readme.txt @@ -1,7 +1,3 @@ Need to install some perl module : yum -y install perl-JSON perl-Statistics-Descriptive - -Update script : -cd BackupPC-Check -git pull ; \cp -vu Check.pm /usr/share/BackupPC/lib/BackupPC/CGI/Check.pm ; \cp -vu en.pm /usr/share/BackupPC/lib/BackupPC/Lang/en.pm diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..f77fd2d --- /dev/null +++ b/update.sh @@ -0,0 +1,7 @@ +git pull +sleep 1 +\cp -vu /root/BackupPC-Check/Check.pm /usr/share/BackupPC/lib/BackupPC/CGI/Check.pm +sleep 1 +\cp -vu /root/BackupPC-Check/ViewCheck.pm /usr/share/BackupPC/lib/BackupPC/CGI/ViewCheck.pm +sleep 1 +\cp -vu /root/BackupPC-Check/en.pm /usr/share/BackupPC/lib/BackupPC/Lang/en.pm