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

omg kill me

This commit is contained in:
Alexander Wühr 2023-02-24 14:26:31 +01:00
parent d31645f435
commit f69599207e
No known key found for this signature in database
6 changed files with 10 additions and 10 deletions

View file

@ -8,8 +8,8 @@
# PERSONAL HELPERS # PERSONAL HELPERS
#================================================= #=================================================
ntfy_setup_source { ntfy_setup_source {
$YNH_ARCH=$1 # $YNH_ARCH=$1
$install_dir=$2 # $install_dir=$2
ynh_setup_source -d "$install_dir" -a "$YNH_ARCH" ynh_setup_source -d "$install_dir" -a "$YNH_ARCH"
ynh_secure_remove --file=$install_dir/client ynh_secure_remove --file=$install_dir/client
@ -19,8 +19,8 @@ ntfy_setup_source {
} }
ntfy_fix_permissions { ntfy_fix_permissions {
$app=$1 # $app=$1
$install_dir=$2 # $install_dir=$2
chmod o+w "$install_dir/data" chmod o+w "$install_dir/data"
chmod 400 "$install_dir/server.yml" chmod 400 "$install_dir/server.yml"

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
source ../settings/scripts/_common.sh
ynh_backup -s "$install_dir" ynh_backup -s "$install_dir"
ynh_backup -s "/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup -s "/etc/nginx/conf.d/$domain.d/$app.conf"

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
source _common.sh
ynh_script_progression -m "Updating systemd service..." -w 1 ynh_script_progression -m "Updating systemd service..." -w 1
ynh_add_systemd_config ynh_add_systemd_config

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
source _common.sh
ynh_script_progression -m "Setting up source files..." -w 6 ynh_script_progression -m "Setting up source files..." -w 6
ntfy_setup_src $YNH_ARCH $install_dir ntfy_setup_src $YNH_ARCH $install_dir

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
source _common.sh
ynh_script_progression -m "Removing service in YunoHost..." -w 1 ynh_script_progression -m "Removing service in YunoHost..." -w 1
yunohost service remove $app yunohost service remove $app

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
source _common.sh
ynh_script_progression -m "Checking version..." -w 1 ynh_script_progression -m "Checking version..." -w 1
upgrade_type=$(ynh_check_app_version_changed) upgrade_type=$(ynh_check_app_version_changed)