mirror of
https://github.com/YunoHost-Apps/bookstack_ynh.git
synced 2024-09-03 18:16:02 +02:00
Fix
This commit is contained in:
parent
7d58f12b0e
commit
7b3503f15a
3 changed files with 5 additions and 6 deletions
|
@ -7,7 +7,7 @@
|
||||||
# wrap the entire value in quotes. (eg. MAIL_FROM_NAME="BookStack Mailer")
|
# wrap the entire value in quotes. (eg. MAIL_FROM_NAME="BookStack Mailer")
|
||||||
|
|
||||||
# Application key
|
# Application key
|
||||||
APP_KEY=__KEY__
|
APP_KEY=SomeRandomString
|
||||||
|
|
||||||
# Application URL
|
# Application URL
|
||||||
APP_URL=https://__DOMAIN____PATH__
|
APP_URL=https://__DOMAIN____PATH__
|
||||||
|
|
|
@ -120,7 +120,6 @@ ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_ar
|
||||||
redis_db=$(ynh_redis_get_free_db)
|
redis_db=$(ynh_redis_get_free_db)
|
||||||
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
|
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
|
||||||
mail_pwd=$(ynh_string_random --length=12)
|
mail_pwd=$(ynh_string_random --length=12)
|
||||||
key=$(ynh_string_random --length=12)
|
|
||||||
|
|
||||||
ynh_add_config --template=../conf/.env.example --destination=$final_path/.env
|
ynh_add_config --template=../conf/.env.example --destination=$final_path/.env
|
||||||
chmod 600 $final_path/.env
|
chmod 600 $final_path/.env
|
||||||
|
|
|
@ -67,8 +67,8 @@ then
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
|
|
||||||
#cp -a "$final_path/.env " "$tmpdir/.env "
|
#cp -a "$final_path/.env " "$tmpdir/.env "
|
||||||
cp -a "$final_path/public/uploads" "$tmpdir/public/uploads"
|
[[ -f "$final_path/public/uploads" ]] && cp -a "$final_path/public/uploads" "$tmpdir/public/uploads"
|
||||||
cp -a "$final_path/storage/uploads" "$tmpdir/storage/uploads"
|
[[ -f "$final_path/storage/uploads" ]] && cp -a "$final_path/storage/uploads" "$tmpdir/storage/uploads"
|
||||||
# Remove the app directory securely
|
# Remove the app directory securely
|
||||||
|
|
||||||
ynh_secure_remove --file=$final_path
|
ynh_secure_remove --file=$final_path
|
||||||
|
@ -76,8 +76,8 @@ then
|
||||||
ynh_setup_source --dest_dir="$final_path"
|
ynh_setup_source --dest_dir="$final_path"
|
||||||
|
|
||||||
#cp -a "$tmpdir/.env " "$final_path/.env "
|
#cp -a "$tmpdir/.env " "$final_path/.env "
|
||||||
cp -a "$tmpdir/public/uploads" "$final_path/public/uploads"
|
[[ -f "$tmpdir/public/uploads" ]] && cp -a "$tmpdir/public/uploads" "$final_path/public/uploads"
|
||||||
cp -a "$tmpdir/storage/uploads" "$final_path/storage/uploads"
|
[[ -f "$tmpdir/storage/uploads" ]] && cp -a "$tmpdir/storage/uploads" "$final_path/storage/uploads"
|
||||||
|
|
||||||
# Remove the tmp directory securely
|
# Remove the tmp directory securely
|
||||||
ynh_secure_remove --file="$tmpdir"
|
ynh_secure_remove --file="$tmpdir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue