1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bookstack_ynh.git synced 2024-09-03 18:16:02 +02:00
This commit is contained in:
Éric Gaspar 2023-04-09 12:10:37 +02:00
parent b85dd7a635
commit 27ce98e2d6
4 changed files with 12 additions and 4 deletions

View file

@ -9,6 +9,10 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# RETRIEVE ARGUMENTS FROM THE MANIFEST
#=================================================
timezone="$(cat /etc/timezone)"
redis_db=$(ynh_redis_get_free_db)
email=$(ynh_user_get_info --username=$admin --key=mail)
@ -21,7 +25,6 @@ fpm_usage="low"
#=================================================
# STORE SETTINGS FROM MANIFEST
#=================================================
ynh_script_progression --message="Storing installation settings..." --weight=1
ynh_app_setting_set --app=$app --key=redis_db --value=$redis_db
ynh_app_setting_set --app=$app --key=auth_method --value=$auth_method
@ -37,7 +40,6 @@ ynh_script_progression --message="Setting up source files..." --weight=7
ynh_setup_source --dest_dir="$install_dir"
# Set permissions to app files
chmod 750 $install_dir
chmod -R o-rwx $install_dir
chown -R $app:www-data $install_dir

View file

@ -17,7 +17,6 @@ ynh_script_progression --message="Restoring the app main directory..." --weight=
ynh_restore_file --origin_path="$install_dir"
# Restore permissions on app files
chmod 750 $install_dir
chmod -R o-rwx $install_dir
chown -R $app:www-data $install_dir
chmod 600 $install_dir/.env

View file

@ -56,7 +56,6 @@ then
ynh_setup_source --dest_dir="$install_dir" --keep=".env public/uploads storage/uploads"
fi
chmod 755 $install_dir
chmod -R o-rwx $install_dir
chown -R $app:www-data $install_dir

View file

@ -2,6 +2,14 @@ test_format = 1.0
[default]
# -------------------------------
# Default args to use for install
# -------------------------------
exclude = ["install.nourl"]
# -------------------------------
# Commits to test upgrade from
# -------------------------------
test_upgrade_from.d653976.name = "Upgrade from 23.01"