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

Merge pull request #75 from yunohost-bot/auto-helpers-2.1

[autopatch] Automatic patch attempt for helpers 2.1
This commit is contained in:
Thomas 2024-08-31 08:36:05 +02:00 committed by GitHub
commit 8d5a0e9d81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 11 additions and 31 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
*~ *~
*.sw[op] *.sw[op]
.DS_Store

View file

@ -19,7 +19,7 @@ admindoc = "https://samr1.github.io/FitTrackee"
code = "https://github.com/SamR1/FitTrackee" code = "https://github.com/SamR1/FitTrackee"
[integration] [integration]
yunohost = ">= 11.2.17" yunohost = ">= 11.2.18"
helpers_version = "2.1" helpers_version = "2.1"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true

View file

@ -1,17 +1,5 @@
#!/bin/bash #!/bin/bash
#================================================= #=================================================
# COMMON VARIABLES # COMMON VARIABLES AND CUSTOM HELPERS
#=================================================
#=================================================
# PERSONAL HELPERS
#=================================================
#=================================================
# EXPERIMENTAL HELPERS
#=================================================
#=================================================
# FUTURE OFFICIAL HELPERS
#================================================= #=================================================

View file

@ -24,7 +24,6 @@ ynh_script_progression "Configuring logrotate to manage application logfiles"
# Use logrotate to manage application logfile(s) # Use logrotate to manage application logfile(s)
ynh_config_add_logrotate ynh_config_add_logrotate
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
@ -34,10 +33,9 @@ ynh_config_add_logrotate
ynh_script_progression "Setting up source files..." ynh_script_progression "Setting up source files..."
ynh_config_add --template=".env.production" --destination="$install_dir/.env" ynh_config_add --template=".env.production" --destination="$install_dir/.env"
chmod 400 $install_dir/.env #REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 400 $install_dir/.env
chown -R $app:www-data "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir"
#================================================= #=================================================
# INSTALL PYTHON DEPENDENCIES # INSTALL PYTHON DEPENDENCIES
#================================================= #=================================================

View file

@ -16,7 +16,6 @@ ynh_script_progression "Configuring logrotate to manage application logfiles"
# Use logrotate to manage application logfile(s) # Use logrotate to manage application logfile(s)
ynh_config_add_logrotate ynh_config_add_logrotate
#================================================= #=================================================
# RESTORE THE NGINX CONFIGURATION # RESTORE THE NGINX CONFIGURATION
#================================================= #=================================================
@ -37,10 +36,9 @@ ynh_psql_db_shell < "./db.sql"
ynh_script_progression "Restoring the app main directory..." ynh_script_progression "Restoring the app main directory..."
ynh_restore "$install_dir" ynh_restore "$install_dir"
chmod 400 $install_dir/.env #REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 400 $install_dir/.env
chown -R $app: "$install_dir"
#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app: "$install_dir"
#================================================= #=================================================
# RESTORE SYSTEMD # RESTORE SYSTEMD
#================================================= #=================================================

View file

@ -33,9 +33,8 @@ ynh_systemctl --action="stop" --service="${app}_workers"
#================================================= #=================================================
ynh_script_progression "Installing dependencies..." ynh_script_progression "Installing dependencies..."
chmod -R o-rwx "$install_dir" #REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir"
chown -R $app: "$install_dir" #REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app: "$install_dir"
#================================================= #=================================================
# CONFIGURE THE INSTALL SCRIPT # CONFIGURE THE INSTALL SCRIPT
#================================================= #=================================================
@ -43,8 +42,8 @@ ynh_script_progression "Installing service script..."
redis_db=$(ynh_redis_get_free_db) redis_db=$(ynh_redis_get_free_db)
ynh_config_add --template=".env.production" --destination="$install_dir/.env" ynh_config_add --template=".env.production" --destination="$install_dir/.env"
chmod 400 $install_dir/.env #REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 400 $install_dir/.env
chown $app: "$install_dir/.env" #REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown $app: "$install_dir/.env"
#================================================= #=================================================
# INSTALL PYTHON DEPENDENCIES # INSTALL PYTHON DEPENDENCIES

View file

@ -1,2 +0,0 @@
*~
*.sw[op]

View file

@ -1,2 +0,0 @@
*~
*.sw[op]