From 8857888f70fb32e0a2fc5e42c2afc49e5540736c Mon Sep 17 00:00:00 2001 From: uap31-r Date: Thu, 21 Oct 2021 15:28:18 +0200 Subject: [PATCH] script war --- prod/script | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 prod/script diff --git a/prod/script b/prod/script new file mode 100755 index 0000000..dde8fe8 --- /dev/null +++ b/prod/script @@ -0,0 +1,7 @@ +#!/bin/bash +DAT=$(date "+%X") +fich="AP31-Projet1.war" +chem="/home/thomas.millot/NetBeansProjects/AP31-Pojet1/dist/""${fich}" + +scp "${chem}" root@10.121.38.66:/usr/libexec/tomcat10/webapps +scp "${chem}" root@10.121.38.66:/root/tomcat/"${fich}"-"${DAT}"