2022-11-02 10:16:52 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
2023-02-24 14:01:24 +01:00
|
|
|
ntfy_setup_source() {
|
|
|
|
ynh_setup_source -d "$install_dir" -s "$YNH_ARCH"
|
|
|
|
mkdir -p "$install_dir/data"
|
|
|
|
chown -R $app:$app "$install_dir"
|
|
|
|
chmod -R 750 "$install_dir/data"
|
|
|
|
|
|
|
|
ynh_secure_remove "$install_dir/client"
|
|
|
|
ynh_secure_remove "$install_dir/server"
|
|
|
|
}
|
2022-11-02 10:16:52 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# FUTURE OFFICIAL HELPERS
|
|
|
|
#=================================================
|