🗃️ 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:
casjay 2023-07-03 21:55:45 -04:00
parent c455231b7a
commit 2c373c5ac4
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F
2 changed files with 5 additions and 2 deletions

View File

@ -79,7 +79,7 @@ PGSQL_CONFIG_FILE="${PGSQL_CONFIG_FILE:-$(__find_pgsql_conf)}"
MONGODB_CONFIG_FILE="${MONGODB_CONFIG_FILE:-$(__find_mongodb_conf)}"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Overwrite variables
export PATH_SQLITE_DB="${PATH_SQLITE_DB:-/data/db/rarbg/database.sqlite}"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Last thing to run before options
__run_pre() {

View File

@ -167,8 +167,11 @@ __update_conf_files() {
__pre_execute() {
local exitCode=0 # default exit code
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
[ -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
#__is_dir_empty "" &&