added proxy use on clean container state
This commit is contained in:
parent
0abf224586
commit
81a3b56306
|
@ -2,6 +2,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||
|
||||
# Changelog for Smartgears Distribution
|
||||
|
||||
## [v3.2.0]
|
||||
|
||||
- clean-container script uses proxy
|
||||
|
||||
## [v3.1.0]
|
||||
|
||||
- Upgraded gcube-smartgears-bom to version 2.1.0
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
[ -f /etc/profile.d/10-java-caching-proxy.sh ] && . /etc/profile.d/10-java-caching-proxy.sh
|
||||
|
||||
function showhelp {
|
||||
echo -e "\nusage: clean-container-state [-g <ghn_home>] [-s <fileName>] [-h] \n"
|
||||
|
@ -43,10 +44,10 @@ source "$ghnhome"/scripts/load-env "$ghnhome"
|
|||
|
||||
RETVAL=
|
||||
if [ -z "$filename" ]; then
|
||||
java org.gcube.smartgears.utils.sweeper.ContainerSweeperClient -G"$ghnhome" 1>/home/gcube/SmartGears/containerState.log
|
||||
java $JAVA_OPTS org.gcube.smartgears.utils.sweeper.ContainerSweeperClient -G"$ghnhome" 1>/home/gcube/SmartGears/containerState.log
|
||||
RETVAL=$?
|
||||
else
|
||||
java org.gcube.smartgears.utils.sweeper.ContainerSweeperClient $filename -G"$ghnhome" 1>/home/gcube/SmartGears/containerState.log
|
||||
java $JAVA_OPTS org.gcube.smartgears.utils.sweeper.ContainerSweeperClient $filename -G"$ghnhome" 1>/home/gcube/SmartGears/containerState.log
|
||||
RETVAL=$?
|
||||
if [ $RETVAL -eq 0 ] ; then
|
||||
echo -e "\nvolatile state saved in $ghnhome/$filename"
|
||||
|
|
Loading…
Reference in New Issue