11 lines
252 B
Bash
Executable File
11 lines
252 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#usage:
|
|
# ./ossUpgrade.sh "stage/ztsjxxxt/frontEnd/" ztsjxxxt
|
|
ossPath=$1 #末尾别忘了加/
|
|
serviceName=$2
|
|
protal=oss
|
|
|
|
sudo journalctl -n 2000 -xeu $serviceName > ${serviceName}.log
|
|
ossutil cp ${serviceName}.log > ${protol}://${ossPath}
|