1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/2FAuth_ynh.git synced 2024-09-03 20:36:18 +02:00

preserve .envfile

This commit is contained in:
ericgaspar 2023-08-24 09:57:30 +02:00
parent 1663937ce9
commit c248ae3568
2 changed files with 7 additions and 7 deletions

View file

@ -5,7 +5,7 @@ name = "2FAuth"
description.en = "self-hosted alternative to One Time Passcode"
description.fr = "Alternative auto-hébergée a One Time Passcode"
version = "4.1.0~ynh2"
version = "4.1.0~ynh3"
maintainers = ["eric_G"]

View file

@ -47,7 +47,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=3
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="storage"
ynh_setup_source --dest_dir="$install_dir" --keep="storage .env"
fi
chown -R $app:www-data "$install_dir"
@ -66,15 +66,15 @@ ynh_add_nginx_config
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
#ynh_script_progression --message="Adding a configuration file..." --weight=1
email=$(ynh_user_get_info --username=$admin --key=mail)
#email=$(ynh_user_get_info --username=$admin --key=mail)
# Setup application config
ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.env"
#ynh_add_config --template="../conf/.env.example" --destination="$install_dir/.env"
chmod 644 "$install_dir/.env"
chown $app:$app "$install_dir/.env"
#chmod 644 "$install_dir/.env"
#chown $app:$app "$install_dir/.env"
#=================================================
# INSTALL 2FAUTH WITH COMPOSER