mirror of
https://github.com/YunoHost-Apps/bookstack_ynh.git
synced 2024-09-03 18:16:02 +02:00
cleaning
This commit is contained in:
parent
b85dd7a635
commit
27ce98e2d6
4 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue