Skip to content

Commit

Permalink
fix: docker image again???
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Jan 29, 2022
1 parent 9dce8a2 commit d1f7a37
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
8 changes: 6 additions & 2 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

set -o errexit
set -o nounset
set -o pipefail

. /app/noel/ume/scripts/liblog.sh

if ! [[ "${UME_DISABLE_WELCOME_PROMPT}" =~ ^(no|false)$ ]]; then
if ! [[ "${UME_ENABLE_WELCOME_PROMPT}" =~ ^(no|false)$ ]]; then
info ""
info " Welcome to the ${BOLD}ume${RESET} container image."
info " Easy, self-hostable, and flexible image and file host, made in Go using MongoDB GridFS."
info ""
info " Subscribe to the project for more updates: https://github.com/auguwu/ume"
info " Any issues occur? Report it! - https://github.com/auguwu/ume"
info " Any issues occur? Report it! https://github.com/auguwu/ume/issues"
info ""
fi

Expand Down
6 changes: 5 additions & 1 deletion docker/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

set -o errexit
set -o nounset
set -o pipefail

. /app/noel/ume/scripts/liblog.sh

info "*** Starting ume! ***"

exec "/app/noel/ume/ume" $@
/app/noel/ume/ume
6 changes: 3 additions & 3 deletions docker/scripts/liblog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ debug() {
timestamp=$(date +"%D ~%r")

if ! [[ "$debug" = "1" || "$debug" =~ ^(no|false)$ ]]; then
printf "%b\\n" "${BLUE}${BOLD}debug${RESET} | ${PINK}${BOLD}${timestamp}${RESET} ~ $1"
printf "%b\\n" "${BLUE}${BOLD}debug${RESET} | ${PINK}${BOLD}${timestamp}${RESET} $1"
fi
}

error() {
timestamp=$(date +"%D ~%r")
printf "%b\\n" "${RED}${BOLD}error${RESET} | ${PINK}${BOLD}${timestamp}${RESET} ~ $1"
printf "%b\\n" "${RED}${BOLD}error${RESET} | ${PINK}${BOLD}${timestamp}${RESET} $1"
}

warn() {
timestamp=$(date +"%D ~%r")
printf "%b\\n" "${RED}${BOLD}warn${RESET} | ${PINK}${BOLD}${timestamp}${RESET} ~ $1"
printf "%b\\n" "${RED}${BOLD}warn${RESET} | ${PINK}${BOLD}${timestamp}${RESET} $1"
}
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "3.2.2"
"version": "3.2.3"
}

0 comments on commit d1f7a37

Please sign in to comment.