milestone 4e. manyfold.sh: sqlite-init model-library naming-convention
This commit is contained in:
parent
d5e50967f3
commit
60c2e3a5f0
1 changed files with 6 additions and 0 deletions
|
|
@ -85,6 +85,11 @@ set_theme(){
|
|||
debug sqlite3 /config/manyfold.sqlite3 "UPDATE settings SET value = '"$THEME"' WHERE var == 'theme';"
|
||||
}
|
||||
|
||||
set_modelpath(){
|
||||
echocolor "[$APPNAME]" "enforcing modelpath"
|
||||
debug sqlite3 /config/manyfold.sqlite3 "UPDATE settings SET value = '{tags}/{modelName}{modelId}' WHERE var == 'model_path_template';"
|
||||
}
|
||||
|
||||
rename_app(){
|
||||
echocolor "[$APPNAME]" "renaming manyfold to $APPNAME"
|
||||
sed -i 's/title: Manyfold/title: '$APPNAME'/g' /usr/src/app/config/locales/*.yml
|
||||
|
|
@ -98,6 +103,7 @@ boot(){
|
|||
test -z "$NO_DEFAULTDB" && db default
|
||||
rename_app
|
||||
set_theme
|
||||
set_modelpath
|
||||
rclone_mount
|
||||
exec "$@" # exec prevents error 's6-overlay-suexec: fatal: can only run as pid 1'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue