Skip to content

Commit 7f2ba71

Browse files
committed
bug release folder
1 parent 4614358 commit 7f2ba71

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

MyMusicBoxApi/release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SCRIPTS_FOLDER="$DATABASE_FOLDER/initscripts"
99
IMAGES_FOLDER="$RELEASE_FOLDER/music/images"
1010
COOKIES_FOLDER="$RELEASE_FOLDER/selenium"
1111
MIGRATION_FOLDER="$RELEASE_FOLDER/migration_scripts"
12-
HOTFIX_FOLDER="$RELEASE_FOLDER/hotfix_logs"
12+
HOTFIX_FOLDER="$RELEASE_FOLDER/music/hotfix_logs"
1313

1414
echo "=== Setting up release folder ==="
1515
FOLDERS=(

MyMusicBoxApi/service/ytdlpHotfix.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package service
33
import (
44
"fmt"
55
"log"
6+
"musicboxapi/logging"
67
"os"
78
)
89

@@ -19,14 +20,14 @@ func FlatPlaylistDownload(
1920
logOutput string,
2021
logOutputError string,
2122
) bool {
22-
23-
Stdout, err := os.OpenFile(logOutput, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
23+
Stdout, err := os.Create(logOutput)
2424

2525
if err != nil {
26+
logging.ErrorStackTrace(err)
2627
panic(-65465465)
2728
}
2829

29-
Stderr, err := os.OpenFile(logOutputError, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
30+
Stderr, err := os.Create(logOutputError)
3031

3132
if err != nil {
3233
panic(-65324465)

MyMusicBoxApi/update

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SCRIPTS_FOLDER="$DATABASE_FOLDER/initscripts"
77
IMAGES_FOLDER="$RELEASE_FOLDER/music/images"
88
COOKIES_FOLDER="$RELEASE_FOLDER/selenium"
99
MIGRATION_FOLDER="$RELEASE_FOLDER/migration_scripts"
10-
HOTFIX_FOLDER="$RELEASE_FOLDER/hotfix_logs"
10+
HOTFIX_FOLDER="$RELEASE_FOLDER/music/hotfix_logs"
1111

1212
echo "=== Checking release folder ==="
1313

@@ -38,9 +38,9 @@ cp selenium/* "$COOKIES_FOLDER"
3838
echo "=== Updating executable ==="
3939
go build -trimpath -buildvcs=false -ldflags="-s -w" -o "$RELEASE_FOLDER"
4040

41-
echo "=== Reducing executable size ==="
42-
cd "$RELEASE_FOLDER"
43-
upx --best --lzma musicboxapi
41+
# echo "=== Reducing executable size ==="
42+
# cd "$RELEASE_FOLDER"
43+
# upx --best --lzma musicboxapi
4444

4545
echo "=== Restarting mymusic service ==="
4646
sudo systemctl stop mymusic || echo "Service 'mymusic' was not running."

0 commit comments

Comments
 (0)