1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/2FAuth_ynh.git synced 2024-09-03 20:36:18 +02:00
This commit is contained in:
Éric Gaspar 2024-06-23 08:57:38 +02:00
parent 22621f1242
commit 492a20ec94
5 changed files with 5 additions and 13 deletions

View file

@ -16,7 +16,7 @@ admindoc = "https://docs.2fauth.app/"
code = "https://github.com/Bubka/2FAuth"
[integration]
yunohost = ">= 11.2"
yunohost = ">= 11.2.15"
helpers_version = "2.1"
architectures = "all"
multi_instance = true

View file

@ -4,5 +4,4 @@
# COMMON VARIABLES AND CUSTOM HELPERS
#=================================================
# Composer version
composer_version="2.7.7"

View file

@ -22,7 +22,6 @@ ynh_app_setting_set --key=key --value=$key
#=================================================
ynh_script_progression "Setting up source files..."
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir"
@ -50,7 +49,6 @@ ynh_composer_exec install --no-dev --prefer-dist --no-scripts --no-dev
#=================================================
ynh_script_progression "Adding $app's configuration..."
# Setup application config
ynh_config_add --template=".env" --destination="$install_dir/.env"
chmod 640 "$install_dir/.env"
@ -61,7 +59,6 @@ chown $app:$app "$install_dir/.env"
#=================================================
ynh_script_progression "Building $app..."
# Setup application config
pushd $install_dir
php$php_version artisan migrate:refresh -n
php$php_version artisan passport:install -n

View file

@ -4,11 +4,10 @@ source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# REMOVE NGINX CONFIGURATION
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
ynh_script_progression "Removing NGINX web server configuration..."
ynh_script_progression "Removing system configurations related to $app..."
# Remove the dedicated NGINX config
ynh_config_remove_nginx
ynh_config_remove_phpfpm

View file

@ -19,16 +19,15 @@ fi
#=================================================
ynh_script_progression "Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --full_replace --keep="public/storage storage .env"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# PHP-FPM CONFIGURATION
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================
ynh_script_progression "Upgrading PHP-FPM configuration..."
ynh_script_progression "Upgrading system configurations related to $app..."
ynh_config_add_phpfpm
@ -39,7 +38,6 @@ ynh_config_add_nginx
#=================================================
ynh_script_progression "Upgrading a configuration file..."
# Setup application config
ynh_config_add --template=".env" --destination="$install_dir/.env"
chmod 640 "$install_dir/.env"
@ -62,7 +60,6 @@ ynh_script_progression "Building..."
ynh_composer_exec update
# Setup application config
pushd $install_dir
php$php_version artisan cache:clear
php$php_version artisan config:clear