mirror of
https://github.com/casjaysdevdocker/rarbg
synced 2025-01-18 12:34:22 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/etc/docker/init.d/zz-default.sh
This commit is contained in:
parent
c455231b7a
commit
2c373c5ac4
@ -79,7 +79,7 @@ PGSQL_CONFIG_FILE="${PGSQL_CONFIG_FILE:-$(__find_pgsql_conf)}"
|
|||||||
MONGODB_CONFIG_FILE="${MONGODB_CONFIG_FILE:-$(__find_mongodb_conf)}"
|
MONGODB_CONFIG_FILE="${MONGODB_CONFIG_FILE:-$(__find_mongodb_conf)}"
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Overwrite variables
|
# Overwrite variables
|
||||||
|
export PATH_SQLITE_DB="${PATH_SQLITE_DB:-/data/db/rarbg/database.sqlite}"
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Last thing to run before options
|
# Last thing to run before options
|
||||||
__run_pre() {
|
__run_pre() {
|
||||||
|
@ -167,8 +167,11 @@ __update_conf_files() {
|
|||||||
__pre_execute() {
|
__pre_execute() {
|
||||||
local exitCode=0 # default exit code
|
local exitCode=0 # default exit code
|
||||||
local user="${SERVICE_USER:-root}" # specifiy different user
|
local user="${SERVICE_USER:-root}" # specifiy different user
|
||||||
|
local rargb_dir="/data/db/rarbg"
|
||||||
|
local rargb_db="/usr/local/share/template-files/data/db/rarbg/database.sqlite"
|
||||||
# define commands
|
# define commands
|
||||||
|
[ -d "$rargb_dir" ] || mkdir -p "$rargb_dir"
|
||||||
|
[ -f "$rargb_dir/database.sqlite" ] || cp -Rf "$rargb_db" "$rargb_dir/database.sqlite"
|
||||||
# execute if directories is empty
|
# execute if directories is empty
|
||||||
#__is_dir_empty "" &&
|
#__is_dir_empty "" &&
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user