- Add an existence-check for the "publications_retriever"-JAR, before trying to make a backup, inside "installAndRun.sh".
- Add a final logging message, right before the app shuts down.
This commit is contained in:
parent
8c1daadad0
commit
378db2ff2f
|
@ -55,8 +55,10 @@ if [[ justInstall -eq 0 ]]; then
|
||||||
cd libs || exit 4
|
cd libs || exit 4
|
||||||
git clone https://github.com/LSmyrnaios/PublicationsRetriever.git # We assume there is no previously source-code here, if so, it will be overwritten.
|
git clone https://github.com/LSmyrnaios/PublicationsRetriever.git # We assume there is no previously source-code here, if so, it will be overwritten.
|
||||||
|
|
||||||
# Keep a backup of the existing JAR file.
|
# Keep a backup of the previous JAR file, if it exists.
|
||||||
mv ./publications_retriever-1.0-SNAPSHOT.jar ./publications_retriever-1.0-SNAPSHOT_BACKUP.jar
|
if [ -f ./publications_retriever-1.0-SNAPSHOT.jar ]; then
|
||||||
|
mv ./publications_retriever-1.0-SNAPSHOT.jar ./publications_retriever-1.0-SNAPSHOT_BACKUP.jar
|
||||||
|
fi
|
||||||
|
|
||||||
cd PublicationsRetriever && sudo apt install -y maven && mvn clean install
|
cd PublicationsRetriever && sudo apt install -y maven && mvn clean install
|
||||||
|
|
||||||
|
|
|
@ -96,6 +96,7 @@ public class UrlsWorkerApplication {
|
||||||
}
|
}
|
||||||
|
|
||||||
FullTextsController.deleteDirectory(-1);
|
FullTextsController.deleteDirectory(-1);
|
||||||
|
logger.info("Exiting..");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
@ -110,6 +111,7 @@ public class UrlsWorkerApplication {
|
||||||
return source;
|
return source;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public CommandLineRunner setServerBaseUrl(Environment environment, ServletWebServerApplicationContext webServerAppCtxt)
|
public CommandLineRunner setServerBaseUrl(Environment environment, ServletWebServerApplicationContext webServerAppCtxt)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue