From e2a6bf6c1a6d01a2b3c45d9d594f2b189b0921e3 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 25 Sep 2021 14:14:22 -0500 Subject: [PATCH] Preinstall prompt more readable --- build/debian/DEBIAN/preinst | 14 ++++++++++---- build/linuxpackager | 3 ++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/build/debian/DEBIAN/preinst b/build/debian/DEBIAN/preinst index 8919fd4b..157fc5cc 100644 --- a/build/debian/DEBIAN/preinst +++ b/build/debian/DEBIAN/preinst @@ -53,24 +53,30 @@ should_build_config() { setup_config() { if should_build_config; then - echo "Alright then, let's setup a new config." + echo "Okay, let's setup a new config." AUDIOBOOK_PATH="" - read -p "Enter path for your audiobooks [Default: $DEFAULT_AUDIOBOOK_PATH]: " AUDIOBOOK_PATH + read -p " + Enter path for your audiobooks [Default: $DEFAULT_AUDIOBOOK_PATH]: + " AUDIOBOOK_PATH if [[ -z "$AUDIOBOOK_PATH" ]]; then AUDIOBOOK_PATH="$DEFAULT_AUDIOBOOK_PATH" fi DATA_PATH="" - read -p "Enter path for data files, i.e. streams, downloads, database [Default: $DEFAULT_DATA_PATH]: " DATA_PATH + read -p " + Enter path for data files, i.e. streams, downloads, database [Default: $DEFAULT_DATA_PATH]: + " DATA_PATH if [[ -z "$DATA_PATH" ]]; then DATA_PATH="$DEFAULT_DATA_PATH" fi PORT="" - read -p "Port for the web ui [Default: $DEFAULT_PORT]: " PORT + read -p " + Port for the web ui [Default: $DEFAULT_PORT]: + " PORT if [[ -z "$PORT" ]]; then PORT="$DEFAULT_PORT" diff --git a/build/linuxpackager b/build/linuxpackager index cef3deaf..e8ab2b46 100644 --- a/build/linuxpackager +++ b/build/linuxpackager @@ -8,7 +8,7 @@ cd "$SCRIPT_DIR/.." # Get package version without double quotes VERSION="$( eval echo $( jq '.version' package.json) )" -OUTPUT_FILE="audiobookshelf_${VERSION}_amd64" +OUTPUT_FILE="audiobookshelf_${VERSION}_amd64.deb" echo ">>> Building Client" echo "--------------------" @@ -33,5 +33,6 @@ pkg -t node12-linux-x64 -o build/debian/usr/share/audiobookshelf/audiobookshelf fakeroot dpkg-deb --build build/debian mv build/debian.deb "build/$OUTPUT_FILE" +chmod +x "build/$OUTPUT_FILE" echo "Finished! Filename: $OUTPUT_FILE"