1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ntfy_ynh.git synced 2024-09-03 19:46:27 +02:00

Fix (another) permission error (again)

This commit is contained in:
Alexander Wühr 2023-02-24 15:10:36 +01:00
parent 89455f7577
commit 6a0deb078c
No known key found for this signature in database
3 changed files with 2 additions and 13 deletions

View file

@ -11,13 +11,9 @@ ntfy_setup_source() {
ynh_setup_source -d "$install_dir" -s "$YNH_ARCH"
ynh_secure_remove "$install_dir/client"
ynh_secure_remove "$install_dir/server"
mkdir -p "$install_dir/data"
}
ntfy_fix_permissions() {
chown -R $app:$app "$install_dir"
chmod -R 750 "$install_dir"
chmod +x "$install_dir/ntfy.sh"
mkdir -p "$install_dir/data"
chmod -R 750 "$install_dir/data"
}
#=================================================

View file

@ -15,9 +15,6 @@ ynh_add_config -t "server.yml" -d "$install_dir/server.yml"
ynh_script_progression -m "Adding a command wrapper..." -w 1
ynh_add_config -t "ntfy.sh" -d "$install_dir/ntfy.sh"
ynh_script_progression -m "Fixing file permissions..." -w 1
ntfy_fix_permissions
ynh_script_progression -m "Configuring systemd service..." -w 1
ynh_add_systemd_config

View file

@ -6,9 +6,6 @@ source /usr/share/yunohost/helpers
ynh_script_progression -m "Restoring the main directory..." -w 1
ynh_restore_file -o "$install_dir"
ynh_script_progression -m "Fixing file permissions..." -w 1
ntfy_fix_permissions
ynh_script_progression -m "Restoring the web server configuration..." -w 1
ynh_restore_file -o "/etc/nginx/conf.d/$domain.d/$app.conf"
@ -20,7 +17,6 @@ ynh_script_progression -m "Integrating service in YunoHost..." -w 1
yunohost service add $app
ynh_script_progression -m "Starting a systemd service..." -w 1
ynh_systemd_action -a start
ynh_script_progression -m "Reloading the web server..." -w 1