forked from lsmyrnaios/UrlsController
-Update "installAndRun.sh":
-- Check if a gradle installation with the given version already exists, before downloading and installing gradle. -- Make sure the "unzip" package is installed, before trying unzipping the gradle package. - Update the logs' fileName.
This commit is contained in:
parent
d931315ced
commit
0540820817
|
@ -12,11 +12,13 @@ gradleVersion="7.2"
|
||||||
|
|
||||||
if [[ justInstall -eq 0 ]]; then
|
if [[ justInstall -eq 0 ]]; then
|
||||||
|
|
||||||
|
if [[ ! -d /opt/gradle/gradle-${gradleVersion} ]]; then
|
||||||
wget https://services.gradle.org/distributions/gradle-${gradleVersion}-bin.zip
|
wget https://services.gradle.org/distributions/gradle-${gradleVersion}-bin.zip
|
||||||
|
echo -e "\nAsking for sudo, in order to install 'gradle'..\n"
|
||||||
sudo mkdir /opt/gradle
|
sudo mkdir /opt/gradle
|
||||||
sudo unzip -d /opt/gradle gradle-${gradleVersion}-bin.zip
|
sudo apt install -y unzip && sudo unzip -d /opt/gradle gradle-${gradleVersion}-bin.zip
|
||||||
#ls /opt/gradle/gradle-${gradleVersion} # For debugging installation
|
#ls /opt/gradle/gradle-${gradleVersion} # For debugging installation
|
||||||
|
fi
|
||||||
|
|
||||||
export PATH=$PATH:/opt/gradle/gradle-${gradleVersion}/bin
|
export PATH=$PATH:/opt/gradle/gradle-${gradleVersion}/bin
|
||||||
|
|
||||||
|
|
|
@ -16,10 +16,10 @@ server.port = 1880
|
||||||
server.servlet.context-path=/api
|
server.servlet.context-path=/api
|
||||||
|
|
||||||
# LOGGING LEVELS
|
# LOGGING LEVELS
|
||||||
spring.output.ansi.enabled=always
|
|
||||||
logging.level.root=WARN
|
logging.level.root=WARN
|
||||||
logging.level.org.springframework.web=INFO
|
logging.level.org.springframework.web=INFO
|
||||||
logging.level.eu.openaire.urls_controller=DEBUG
|
logging.level.eu.openaire.urls_controller=DEBUG
|
||||||
|
spring.output.ansi.enabled=always
|
||||||
|
|
||||||
|
|
||||||
## MULTIPART (MultipartProperties)
|
## MULTIPART (MultipartProperties)
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<configuration debug="false">
|
<configuration debug="false">
|
||||||
|
|
||||||
<appender name="File" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
<appender name="File" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
<file>logs/urls_controller.log</file>
|
<file>logs/UrlsController.log</file>
|
||||||
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
|
||||||
<fileNamePattern>logs/urls_controller.%i.log.zip</fileNamePattern>
|
<fileNamePattern>logs/UrlsController.%i.log.zip</fileNamePattern>
|
||||||
</rollingPolicy>
|
</rollingPolicy>
|
||||||
|
|
||||||
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
|
||||||
|
|
Loading…
Reference in New Issue