Skip to content

Commit f0ff04c

Browse files
committed
Fixing the build. Adding application.properties config for leaveOnEmptyChannel and updated the docker entrypoint to to update that prop if a value is sent along
1 parent 32a1199 commit f0ff04c

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ bootDistZip {
143143
}
144144
into("DiscordSoundboard/bin/static") {
145145
from('src/main/webapp')
146-
rename { String fileName ->
147-
fileName.replace("index.html", "indexV2.html") }
148146
from ("${layout.buildDirectory.get()}/resources/main/static/")
149147
}
150148
into("DiscordSoundboard/bin/sounds") {

docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ sed -i 's/^dj_user_list=.*/dj_user_list='$djuserlist'/' application.properties
2121
sed -i 's/^spring.security.oauth2.client.registration.discord.client-id=.*/spring.security.oauth2.client.registration.discord.client-id='$discordclientid'/' application.properties
2222
sed -i 's/^spring.security.oauth2.client.registration.discord.client-secret=.*/spring.security.oauth2.client.registration.discord.client-secret='$discordclientsecret'/' application.properties
2323
sed -i 's/^jwt.secret=.*/jwt.secret='$jwtsecret'/' application.properties
24+
sed -i 's/^leaveOnEmptyChannel=.*/leaveOnEmptyChannel='$leaveOnEmptyChannel'/' application.properties
2425
sed -i 's~^app.frontend-url=.*~app.frontend-url='$frontendurl'~' application.properties
2526

2627
echo "changing working directory to /etc/DiscordSoundboard/bin"

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
projectVersion=4.1.10
1+
projectVersion=4.1.11
22
org.gradle.configuration-cache=false

src/main/resources/application.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ allowedUsers=
6666
#bot through chat.
6767
bannedUsers=SomeGuy,SomeotherGuy,ThirdGuy123
6868

69+
#Leave the channel if it's empty.
70+
leaveOnEmptyChannel=true
71+
6972
#Database setting stuff. Should probably change the users/pass for this.
7073
spring.datasource.username=admin
7174
spring.datasource.password=password

0 commit comments

Comments
 (0)