1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grocy_ynh.git synced 2024-09-03 19:25:54 +02:00

[autopatch] Automatic patch attempt for helpers 2.1

This commit is contained in:
Yunohost-Bot 2024-08-30 23:29:59 +02:00 committed by Alexandre Aubin
parent f6f21fd3d2
commit 5937306642
4 changed files with 12 additions and 14 deletions

View file

@ -16,7 +16,7 @@ demo = "https://en.demo.grocy.info/stockoverview"
code = "https://github.com/grocy/grocy" code = "https://github.com/grocy/grocy"
[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
@ -56,6 +56,7 @@ ram.runtime = "50M"
[resources.system_user] [resources.system_user]
[resources.install_dir] [resources.install_dir]
group = "www-data:r-x"
[resources.permissions] [resources.permissions]
main.url = "/" main.url = "/"

View file

@ -10,9 +10,8 @@ ynh_script_progression "Setting up source files..."
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
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: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"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================
@ -29,8 +28,8 @@ ynh_script_progression "Adding $app's configuration..."
ynh_config_add --template="config-dist.php" --destination="$install_dir/data/config.php" ynh_config_add --template="config-dist.php" --destination="$install_dir/data/config.php"
chmod 400 "$install_dir/data/config.php" #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/data/config.php"
chown $app "$install_dir/data/config.php" #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/data/config.php"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

View file

@ -11,9 +11,8 @@ ynh_script_progression "Restoring $app main directory..."
ynh_restore "$install_dir" ynh_restore "$install_dir"
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: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"
#================================================= #=================================================
# RESTORE THE PHP-FPM CONFIGURATION # RESTORE THE PHP-FPM CONFIGURATION
#================================================= #=================================================

View file

@ -12,9 +12,8 @@ ynh_setup_source --dest_dir="$install_dir" --keep="data"
ynh_safe_rm "$install_dir/data/viewcache/*" ynh_safe_rm "$install_dir/data/viewcache/*"
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: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"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================
@ -30,8 +29,8 @@ ynh_config_add_phpfpm
ynh_config_add --template="config-dist.php" --destination="$install_dir/data/config.php" ynh_config_add --template="config-dist.php" --destination="$install_dir/data/config.php"
chmod 400 "$install_dir/data/config.php" #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/data/config.php"
chown $app "$install_dir/data/config.php" #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/data/config.php"
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT