mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-09-18 15:57:45 -04:00
🗃️ Committing everything that changed 🗃️
applications/ configs/ lists/ wwwroot/
This commit is contained in:
25
applications/lenpaste/scripts/commands.sh
Normal file
25
applications/lenpaste/scripts/commands.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
RUN_CMD="$RUN_CMD -address $HOSTNAME"
|
||||
RUN_CMD="$RUN_CMD -db-driver sqlite3"
|
||||
RUN_CMD="$RUN_CMD -db-source /data/lenpaste.db"
|
||||
[ -f "/data/about" ] && RUN_CMD="$RUN_CMD -server-about /data/about"
|
||||
[ -f "/data/rules" ] && RUN_CMD="$RUN_CMD -server-rules /data/rules"
|
||||
[ -f "/data/terms" ] && RUN_CMD="$RUN_CMD -server-terms /data/terms"
|
||||
[ -d "/data/themes" ] && RUN_CMD="$RUN_CMD -ui-themes-dir /data/themes"
|
||||
[ -f "/data/lenpasswd" ] && RUN_CMD="$RUN_CMD -lenpasswd-file /data/lenpasswd"
|
||||
[ "$LENPASTE_ROBOTS_DISALLOW" = "true" ] && RUN_CMD="$RUN_CMD -robots-disallow"
|
||||
[ -n "$LENPASTE_ADMIN_NAME" ] && RUN_CMD="$RUN_CMD -admin-name '$LENPASTE_ADMIN_NAME'"
|
||||
[ -n "$LENPASTE_ADMIN_MAIL" ] && RUN_CMD="$RUN_CMD -admin-mail '$LENPASTE_ADMIN_MAIL'"
|
||||
[ -n "$LENPASTE_BODY_MAX_LENGTH" ] && RUN_CMD="$RUN_CMD -body-max-length '$LENPASTE_BODY_MAX_LENGTH'"
|
||||
[ -n "$LENPASTE_TITLE_MAX_LENGTH" ] && RUN_CMD="$RUN_CMD -title-max-length '$LENPASTE_TITLE_MAX_LENGTH'"
|
||||
[ -n "$LENPASTE_DB_MAX_OPEN_CONNS" ] && RUN_CMD="$RUN_CMD -db-max-open-conns '$LENPASTE_DB_MAX_OPEN_CONNS'"
|
||||
[ -n "$LENPASTE_DB_MAX_IDLE_CONNS" ] && RUN_CMD="$RUN_CMD -db-max-idle-conns '$LENPASTE_DB_MAX_IDLE_CONNS'"
|
||||
[ -n "$LENPASTE_DB_CLEANUP_PERIOD" ] && RUN_CMD="$RUN_CMD -db-cleanup-period '$LENPASTE_DB_CLEANUP_PERIOD'"
|
||||
[ -n "$LENPASTE_MAX_PASTE_LIFETIME" ] && RUN_CMD="$RUN_CMD -max-paste-lifetime '$LENPASTE_MAX_PASTE_LIFETIME'"
|
||||
[ -n "$LENPASTE_GET_PASTES_PER_5MIN" ] && RUN_CMD="$RUN_CMD -get-pastes-per-5min '$LENPASTE_GET_PASTES_PER_5MIN'"
|
||||
[ -n "$LENPASTE_NEW_PASTES_PER_5MIN" ] && RUN_CMD="$RUN_CMD -new-pastes-per-5min '$LENPASTE_NEW_PASTES_PER_5MIN'"
|
||||
[ -n "$LENPASTE_GET_PASTES_PER_15MIN" ] && RUN_CMD="$RUN_CMD -get-pastes-per-15min '$LENPASTE_GET_PASTES_PER_15MIN'"
|
||||
[ -n "$LENPASTE_NEW_PASTES_PER_15MIN" ] && RUN_CMD="$RUN_CMD -new-pastes-per-15min '$LENPASTE_NEW_PASTES_PER_15MIN'"
|
||||
[ -n "$LENPASTE_GET_PASTES_PER_1HOUR" ] && RUN_CMD="$RUN_CMD -get-pastes-per-1hour '$LENPASTE_GET_PASTES_PER_1HOUR'"
|
||||
[ -n "$LENPASTE_NEW_PASTES_PER_1HOUR" ] && RUN_CMD="$RUN_CMD -new-pastes-per-1hour '$LENPASTE_NEW_PASTES_PER_1HOUR'"
|
||||
[ -n "$LENPASTE_UI_DEFAULT_LIFETIME" ] && RUN_CMD="$RUN_CMD -ui-default-lifetime '$LENPASTE_UI_DEFAULT_LIFETIME'"
|
||||
[ -n "$LENPASTE_UI_DEFAULT_THEME" ] && RUN_CMD="$RUN_CMD -ui-default-theme $LENPASTE_UI_DEFAULT_THEME"
|
9
applications/lenpaste/scripts/install.sh
Normal file
9
applications/lenpaste/scripts/install.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM git.lcomrade.su/root/lenpaste:latest AS build
|
||||
|
||||
ARG ALPINE_VERSION=edge
|
||||
|
||||
[ -f "/entrypoint.sh" ] && rm -Rf "/entrypoint.sh"
|
||||
[ -d "$DEFAULT_CONF_DIR/html" ] || mkdir -p "$DEFAULT_CONF_DIR/html"
|
||||
[ -f "$DEFAULT_CONF_DIR/html/about" ] || touch "$DEFAULT_CONF_DIR/html/about"
|
||||
[ -f "$DEFAULT_CONF_DIR/html/rules" ] || touch "$DEFAULT_CONF_DIR/html/rules"
|
||||
[ -f "$DEFAULT_CONF_DIR/html/terms" ] || touch "$DEFAULT_CONF_DIR/html/terms"
|
0
applications/lenpaste/scripts/packages.sh
Normal file
0
applications/lenpaste/scripts/packages.sh
Normal file
Reference in New Issue
Block a user