mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
parent
b4b4a25af5
commit
95b0ba42cd
6 changed files with 26 additions and 16 deletions
|
@ -20,9 +20,6 @@
|
|||
multi_instance=1
|
||||
port_already_use=0
|
||||
change_url=1
|
||||
;;; Levels
|
||||
# If the level 5 (Package linter) is forced to 1. Please add justifications here.
|
||||
Level 5=auto
|
||||
;;; Options
|
||||
Email=
|
||||
Notification=none
|
||||
|
|
|
@ -32,7 +32,7 @@ DB_LOG_SQL=false
|
|||
TIMEZONE=UTC
|
||||
|
||||
# folders in which the files will be stored
|
||||
#LYCHEE_DIST="/var/www/__APP__/public/dist/"
|
||||
LYCHEE_DIST="__FINALPATH__/public/dist/"
|
||||
LYCHEE_UPLOADS="/home/yunohost.app/__APP__/uploads/"
|
||||
|
||||
# url to access those files
|
||||
|
|
|
@ -12,3 +12,12 @@
|
|||
[data-id="f"] { display:none; }
|
||||
[data-id="r"] { display:none; }
|
||||
*/
|
||||
|
||||
/* Make the diadnostic font bigger */
|
||||
.settings_view p, .settings_view a, .settings_view input,
|
||||
.sharing_view p, .sharing_view a, .sharing_view input, .sharing_view option,
|
||||
.users_view p, .users_view a, .users_view input, .users_view option,
|
||||
.logs_diagnostics_view pre {
|
||||
font-size: 12pt;
|
||||
line-height: 14pt;
|
||||
}
|
||||
|
|
|
@ -129,20 +129,22 @@ cp ../conf/.env.example $final_path/.env
|
|||
ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/.env"
|
||||
ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --target_file="$final_path/.env"
|
||||
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/.env"
|
||||
ynh_replace_string --match_string="__FINALPATH__" --replace_string="$final_path" --target_file="$final_path/.env"
|
||||
|
||||
# setup application config
|
||||
cd $final_path && php$phpversion artisan key:generate -n --force --env
|
||||
cd $final_path && php$phpversion artisan migrate -n --force
|
||||
cd $final_path && php$phpversion artisan config:clear -n
|
||||
cd $final_path && php$phpversion artisan config:cache -n
|
||||
# Setup application config
|
||||
pushd "$final_path"
|
||||
php$phpversion artisan key:generate -n --force --env
|
||||
php$phpversion artisan migrate -n --force
|
||||
php$phpversion artisan config:clear -n
|
||||
php$phpversion artisan config:cache -n
|
||||
popd
|
||||
|
||||
# Setup custum user.css file
|
||||
#cp ../conf/user.css.example $final_path/public/dist/user.css
|
||||
# Setup custom user.css file
|
||||
cp ../conf/user.css.example $final_path/public/dist/user.css
|
||||
|
||||
#=================================================
|
||||
# STORE THE CONFIG FILE CHECKSUM
|
||||
#=================================================
|
||||
ynh_script_progression --message="Storing the config file checksum..."
|
||||
|
||||
# Calculate and store the config file checksum into the app settings
|
||||
ynh_store_file_checksum "$final_path/.env"
|
||||
|
|
|
@ -136,9 +136,11 @@ ynh_install_composer
|
|||
|
||||
ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\"
|
||||
|
||||
( cd $final_path && php$phpversion artisan migrate -n --force )
|
||||
( cd $final_path && php$phpversion artisan config:clear -n )
|
||||
( cd $final_path && php$phpversion artisan config:cache -n )
|
||||
pushd "$final_path"
|
||||
php$phpversion artisan migrate -n --force
|
||||
php$phpversion artisan config:clear -n
|
||||
php$phpversion artisan config:cache -n
|
||||
popd
|
||||
|
||||
ynh_backup_if_checksum_is_different --file="$final_path/.env"
|
||||
# Recalculate and store the checksum of the file for the next upgrade.
|
||||
|
|
Loading…
Reference in a new issue