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:
parent
d31645f435
commit
f69599207e
6 changed files with 10 additions and 10 deletions
|
@ -8,8 +8,8 @@
|
|||
# PERSONAL HELPERS
|
||||
#=================================================
|
||||
ntfy_setup_source {
|
||||
$YNH_ARCH=$1
|
||||
$install_dir=$2
|
||||
# $YNH_ARCH=$1
|
||||
# $install_dir=$2
|
||||
|
||||
ynh_setup_source -d "$install_dir" -a "$YNH_ARCH"
|
||||
ynh_secure_remove --file=$install_dir/client
|
||||
|
@ -19,8 +19,8 @@ ntfy_setup_source {
|
|||
}
|
||||
|
||||
ntfy_fix_permissions {
|
||||
$app=$1
|
||||
$install_dir=$2
|
||||
# $app=$1
|
||||
# $install_dir=$2
|
||||
|
||||
chmod o+w "$install_dir/data"
|
||||
chmod 400 "$install_dir/server.yml"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
source ../settings/scripts/_common.sh
|
||||
|
||||
ynh_backup -s "$install_dir"
|
||||
ynh_backup -s "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
source _common.sh
|
||||
|
||||
ynh_script_progression -m "Updating systemd service..." -w 1
|
||||
ynh_add_systemd_config
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
source _common.sh
|
||||
|
||||
ynh_script_progression -m "Setting up source files..." -w 6
|
||||
ntfy_setup_src $YNH_ARCH $install_dir
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
source _common.sh
|
||||
|
||||
ynh_script_progression -m "Removing service in YunoHost..." -w 1
|
||||
yunohost service remove $app
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
source _common.sh
|
||||
|
||||
ynh_script_progression -m "Checking version..." -w 1
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
|
Loading…
Add table
Reference in a new issue