1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/microbin_ynh.git synced 2024-09-03 19:45:57 +02:00

[autopatch] Automatic patch attempt for helpers 2.1

This commit is contained in:
Yunohost-Bot 2024-08-31 01:05:42 +02:00 committed by Alexandre Aubin
parent 528d1048c1
commit a05df038c9
5 changed files with 14 additions and 15 deletions

View file

@ -19,7 +19,7 @@ code = "https://github.com/szabodanika/microbin"
fund = "https://ko-fi.com/dani_sz"
[integration]
yunohost = ">= 11.2.16"
yunohost = ">= 11.2.18"
helpers_version = "2.1"
architectures = "all"
multi_instance = true

View file

@ -12,7 +12,7 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression "Stopping $app's systemd service..."
ynh_systemctl --service="$app" --action="stop"
ynh_systemctl --action="stop"
#=================================================
# MODIFY URL IN NGINX CONF
@ -26,7 +26,7 @@ ynh_config_change_url_nginx
#=================================================
ynh_script_progression "Starting $app's systemd service..."
ynh_systemctl --service="$app" --action="start"
ynh_systemctl --action="start"
#=================================================
# END OF SCRIPT

View file

@ -21,7 +21,7 @@ ynh_script_progression "Setting up source files..."
ynh_setup_source --dest_dir="$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"
chmod +x "$install_dir/microbin"
#=================================================
@ -31,8 +31,8 @@ ynh_script_progression "Adding $app's configuration files..."
ynh_config_add --template=".env" --destination="$install_dir/.env"
chmod 400 "$install_dir/.env"
chown "$app:$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 | 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 | chown "$app:$app" "$install_dir/.env"
#=================================================
# SYSTEM CONFIGURATION
@ -51,7 +51,7 @@ yunohost service add "$app" --description="Configurable file-sharing app" --log=
ynh_script_progression "Starting $app's systemd service..."
# Start a systemd service
ynh_systemctl --service="$app" --action="start"
ynh_systemctl --action="start"
#=================================================
# END OF SCRIPT

View file

@ -14,8 +14,7 @@ ynh_script_progression "Restoring the app main directory..."
ynh_restore "$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 DATA DIRECTORY
#=================================================
@ -42,7 +41,7 @@ yunohost service add "$app" --description="Configurable file-sharing app" --log=
#=================================================
ynh_script_progression "Reloading NGINX web server and $app's service..."
ynh_systemctl --service="$app" --action="start"
ynh_systemctl --action="start"
ynh_systemctl --service=nginx --action=reload

View file

@ -12,7 +12,7 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression "Stopping $app's systemd service..."
ynh_systemctl --service="$app" --action="stop"
ynh_systemctl --action="stop"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
@ -21,7 +21,7 @@ ynh_script_progression "Upgrading source files..."
ynh_setup_source --dest_dir="$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"
chmod +x "$install_dir/microbin"
#=================================================
@ -31,8 +31,8 @@ ynh_script_progression "Updating $app's configuration files..."
ynh_config_add --template=".env" --destination="$install_dir/.env"
chmod 400 "$install_dir/.env"
chown "$app:$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 | 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 | chown "$app:$app" "$install_dir/.env"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS
@ -50,7 +50,7 @@ yunohost service add "$app" --description="Configurable file-sharing app" --log=
#=================================================
ynh_script_progression "Starting $app's systemd service..."
ynh_systemctl --service="$app" --action="start"
ynh_systemctl --action="start"
#=================================================
# END OF SCRIPT