mirror of
https://github.com/casjaysdevdocker/opengist
synced 2025-12-01 10:13:26 -05:00
rootfs/usr/local/etc/docker/init.d/00-opengist.sh
This commit is contained in:
@@ -171,7 +171,7 @@ user_pass="${OPENGIST_USER_PASS_WORD:-}" # normal user password
|
|||||||
[ -f "/config/env/opengist.sh" ] && . "/config/env/opengist.sh" # Overwrite the variabes
|
[ -f "/config/env/opengist.sh" ] && . "/config/env/opengist.sh" # Overwrite the variabes
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Additional predefined variables
|
# Additional predefined variables
|
||||||
|
DATABASE_DIR="/data/db/sqlite"
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Additional variables
|
# Additional variables
|
||||||
|
|
||||||
@@ -261,7 +261,7 @@ __update_conf_files() {
|
|||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# define actions
|
# define actions
|
||||||
|
[ "$DATABASE_DIR" ] && chown -Rf $SERVICE_USER:$SERVICE_GROUP "$DATABASE_DIR"
|
||||||
# allow custom functions
|
# allow custom functions
|
||||||
if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi
|
if builtin type -t __update_conf_files_local | grep -q 'function'; then __update_conf_files_local; fi
|
||||||
# exit function
|
# exit function
|
||||||
|
|||||||
Reference in New Issue
Block a user